Matthew Stier wrote: > First, I suspect you have two typo's on the subject line. > > Second, If sudo won't run sudo, you probably have sudo configured not > to be run as root. > > Third, boot scripts should be written to be run by root, and if it > needs to change users, that should be done with 'su' with the '-c' > option, and a simple command-line. I can only run the script as sudo and I can't reboot the machine. Is there any other way to change users besides su since I can't run su? > > Fourth, boot scripts should test for everything. If you reference > something outside the core operating system, you should test that it > is present, rather than blindly assuming it is there, and crashing. > > > James wrote: >> I'm having trouble running the init script with sudo. >> I changed the su to use sudo but then I can't run the script with sudo >> because sudo can't run sudo.
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null