|
2008-06-05
, 17:46
|
|
Posts: 4,930 |
Thanked: 2,272 times |
Joined on Oct 2007
|
#12
|
visudo
|
2008-06-05
, 17:56
|
|
Posts: 125 |
Thanked: 27 times |
Joined on Nov 2007
@ Bellshill, UK
|
#13
|
No, you want:Now you're in vi, editing sudoers.Code:visudo
Go to the bottom, press i for insert mode, add the line.
Press Esc (CCW curly arrow key, functions as stop/back in the browser) to re-enter command mode, and type ZZ to save and exit.
If it's valid syntax, it'll exit; if not, it'll throw you back to try again. (If you didn't use visudo, it would let you leave it with bad syntax, which will probably cause a reboot loop.)
|
2008-06-05
, 19:14
|
|
Posts: 4,930 |
Thanked: 2,272 times |
Joined on Oct 2007
|
#14
|
sudo gainroot
visudo user ALL = NOPASSWD: ALL
Get the following:
usage: visudo [-c] [-f sudoers] [-q] [-s] [-V]
Still can't edit in emelFM2
Gerry (The MOTH)
Website: http://gerrymoth.co.uk