On 20 Apr 2002 at 15:25, Jon Doe wrote:
Ok, I know I'll hear about this, but I have no clue how to use vi. I am trying to add me "jon" to the sudoers file so I can run sudo without the root password. I think I know how to put it in the file:
jon ALL=/sbin/mount
But how do I save the file??
I am trying to use samba and mount my USB card reader without having to use root password. Thanks for any help.
A very quick tutorial: Two modes - 'command' and 'insert'. hitting 'i' in command mode will take you to insert mode, where you can add text. You cannot delete text in insert mode, except for the text you've just inserted (and except in particular enhanced versions of vi. hitting 'Esc' in insert mode will take you to command mode. In command mode: 'x' will delete the character under the cursor 'dd' will delete the current line ':x' will save and exit ':q!' will exit without saving -- David Smith | Tel: +44 (0)1454 462380 Home: +44 (0)1454 616963 STMicroelectronics | Fax: +44 (0)1454 617910 Mobile: +44 (0)7932 642724 1000 Aztec West | TINA: 065 2380 Almondsbury | Work Email: Dave.Smith@st.com BRISTOL, BS32 4SQ | Home Email: David.Smith@ds-electronics.co.uk