November 22, 2024, 10:48:19 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: starting services as non-root  (Read 6458 times)

Offline kumar_swarup

  • New Member
  • Posts: 1
starting services as non-root
« 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

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
starting services as non-root
« Reply #1 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.

Offline sunny_kotaru

  • Linux Noob !
  • *
  • Posts: 14
starting services as non-root
« Reply #2 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.