need help with sudo
Hello,
this is my sudoers file. "Test" is the member of "wheel".
# User privilege specification
root ALL=(ALL) ALL
test ALL=(ALL) ALL
# Uncomment to allow people in group wheel to run all commands
%wheel ALL=(ALL) ALL
Here I try to use sudo with root password. Where is the problem?
login as: test
Sent username "test"
test@10.0.0.50's password:
[test@RH9 test]$ sudo shutdown -h now
Password:
Sorry, try again.
Password:
And why when I use su I get :
[test@RH9 test]$ su
Password:
[root@RH9 test]# cd /
[root@RH9 /]# shutdown -h now
bash: shutdown: command not found
[root@RH9 /]#
When I log as root, sure I can shutdown -h now
Thanks.
Michael.
|