sudo /etc/init.d/nagios
James
bjlockie at lockie.ca
Tue Sep 16 05:59:18 CEST 2008
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 at 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
More information about the Users
mailing list