ok i have run into difficulties again
I have edited the sudoers file using the visudo command.
This is it:
Code:
--------------------
# See the sudoers man page for the details on how to write a sudoers file.
#
# Host alias specification
# User alias specification
User_Alias TRUSTED = slimserver
# Cmnd alias specification
Cmnd_Alias SHUTDOWN = /sbin/./shutdown -k now
# Defaults specification
# Runas alias specification
# User privilege specification
root ALL=(ALL) ALL
TRUSTED ALL=SHUTDOWN
# Uncomment to allow people in group wheel to run all commands
# %wheel ALL=(ALL) ALL
# Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
--------------------
The script I run is
Code:
--------------------
#!/bin/sh
/sbin/./shutdown -k now
--------------------
The console tells me-
shutdown: you must be root to do that!
>From this I gather- that the script file was exectued correctly, that
the shutdown command was run, but was then blocked because slimserver
is still not recognised as being allowed to perform this command.
Any guidance?
Thanks
Jono
--
jonolumb
------------------------------------------------------------------------
jonolumb's Profile: http://forums.slimdevices.com/member.php?userid=1474
View this thread: http://forums.slimdevices.com/showthread.php?t=18073
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/unix