Linux Forums - Linux Help,Advice & support community:LinuxSolved.com

Network Troublshooting => General Networking Support in Linux => Topic started by: kumar_swarup on July 04, 2004, 08:21:38 AM

Title: starting services as non-root
Post by: kumar_swarup on July 04, 2004, 08:21:38 AM
Sir,
        I want to start,restart and reload the services in redhat as non-root user. plz guide me how can i do that

when i tried to do it , it gave me the following errors:


[swarup@ludhiana swarup]$ /sbin/service nagios restart
nagios: unrecognized service
[swarup@ludhiana swarup]$


[swarup@ludhiana swarup]$ /sbin/service /etc/init.d/nagios restart
/etc/init.d/nagios: unrecognized service

Plz help

swarup
Title: starting services as non-root
Post by: Ricky on July 04, 2004, 08:38:07 AM
It depends upon the software which are you using. In some programes you can specify that under what user privilage it run.. ie.. in squid you can tell that always start as specific user not the current user.

Se first check that ur nagios has that option or not.

Plz also give link to download nagios and its info as I have not used that yet.
Title: starting services as non-root
Post by: sunny_kotaru on July 05, 2004, 09:42:49 AM
Hi,

a couple of ways are there to solve your problem.

Option 1: put your user name into your adm group. you will get most of the administration priviligies.

Option 2: what ever the program you are using / administraing, own all the files intoyour user name and group.

Option 3: most effective way is that use the sudo program. it is excellent program. using this tool, you or your administrator can able to give priviliges of certian part of the system.