using "service *"

kark

Verified User
Joined
Jan 8, 2004
Messages
39
When I log in through SSH with a regular user and then "su", I can not use, for example, service httpd status. When I log in as root I can.

I saw the paths in /root/.cshrc but copying this to the user didn't work. I also tried the setenv but that didn't work either. I get a "setenv" not found or something.

I know I can log into the machine as root, but I want to limit this as much as possible. Anyone know how I can use "service" when I su ?

Thanks,
Kark
 
Hello,

You probably don't have /sbin/ in your path. Just run:

/sbin/service httpd status

intead.

John
 
Back
Top