Shell Command with Sudo

Peter Alcibiades palcibiades-first at yahoo.co.uk
Sat Jun 12 05:08:40 EDT 2010


Is there a reason you cannot use the NOPASSWD option in sudo?  Maybe this is
not how it works in OSX, but what you'd normally do is to edit /etc/sudoers
to allow this particular user to perform this particular command with the no
password option, and its done.  If you do this, the command can be limited
to one with specific options.  For instance, you can allow shutdown with the
-h option, but not the -r option.  No-one has to know the root password then
and it is not written anyplace.  Yes, you do have to know it to edit
/etc/sudoers.
-- 
View this message in context: http://runtime-revolution.278305.n4.nabble.com/Shell-Command-with-Sudo-tp2251593p2252593.html
Sent from the Revolution - User mailing list archive at Nabble.com.



More information about the Use-livecode mailing list