PDA

View Full Version : using "service *"


kark
02-07-2004, 04:02 AM
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

ProWebUK
02-07-2004, 08:56 AM
su -

(the -)

Chris

DirectAdmin Support
02-07-2004, 01:27 PM
Hello,

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

/sbin/service httpd status

intead.

John

kark
02-07-2004, 01:51 PM
The - did the job! Thanks a bunch!

Kark