Quote:
Originally posted by demmylls
i dont know how to edit sudoer file.
how is the syntax?
where can i get howto documentation for editing sudoer file?
|
Open a shell. -- [techlaw@localhost techlaw]$
Login as root, run "visudo"
[techlaw@localhost techlaw]$ su
Password:
[root@localhost techlaw]# visudo
You get a file that looks like this (I did anyway)
# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the sudoers man page for the details on how to write a sudoers file.
#
# Host alias specification
# User alias specification
# Cmnd alias specification
# Defaults specification
# User privilege specification
root ALL=(ALL) ALL
There is more, but this is enough to get you started...
Now use VI commands. This is what I did...
move cursor, with the arrow keys, to the spot I want to edit -- "User privilege specification" section, press shift+r (Uppercase r) to get to REPLACE mode. Type this text on the next line after the root entry (using your login):
your_user_name_here ALL=(ALL) NOPASSWD: ALL
, then press (in this order):
shift + :
w
ENTER
shift + :
q
ENTER
then test it out
[techlaw@localhost techlaw]$ sudo redhat-config-network
and the netconfig GUI started right up.
Now this may not be the perfect or elegant way, but who cares? It got the job done.
Hope I was some help,
oklitig8r