Re: Service command

2003-09-05 Thread Leonard Miller
Who are you running the command as? Root should be the only person that can run the service command. If you su to root and it doesn't work, try to use su - instead. Or just type /sbin/service. If it still says command not found, do a which service and see what it says. Leonard Automatically

RE: Service command

2003-09-05 Thread Mark Haney
Leonard Miller wrote: Who are you running the command as? Root should be the only person that can run the service command. If you su to root and it doesn't work, try to use su - instead. Or just type /sbin/service. If it still says command not found, do a which service and see what it

RE: Service command

2003-09-05 Thread Leonard Miller
That's ok, i get the same way. Leonard no well function beer without. But /sbin should be in roots path. If it isn't, you might want to put it there. Leonard Automatically inserted lawyer supplied confidentiality notice follows...again [EMAIL PROTECTED] 09/05/03 15:23 PM Okay, someone

RE: Service command

2003-09-05 Thread Jonathan Bartlett
Remember that su - will alter your environment to include /sbin and /usr/sbin, while su will not. Jon On Fri, 5 Sep 2003, Mark Haney wrote: Leonard Miller wrote: Who are you running the command as? Root should be the only person that can run the service command. If you su to root and it

RE: Service command

2003-09-05 Thread Mark Haney
Jonathan Bartlett wrote: Remember that su - will alter your environment to include /sbin and /usr/sbin, while su will not. Jon I did not know that. In all the years I've been doing this, I've never heard that. A day is not wasted when you learn something new. Thanks for the tidbit.

RE: Service command

2003-09-05 Thread Jonathan Bartlett
A slightly expanded explanation: su only changes permissions of the current process su - does a full login. Jon On Fri, 5 Sep 2003, Mark Haney wrote: Jonathan Bartlett wrote: Remember that su - will alter your environment to include /sbin and /usr/sbin, while su will not. Jon I

Re: Service command

2003-09-05 Thread Michael Schwendt
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, 5 Sep 2003 16:16:32 -0400, Mark Haney wrote: Jonathan Bartlett wrote: Remember that su - will alter your environment to include /sbin and /usr/sbin, while su will not. I did not know that. In all the years I've been doing this, I've

Re: Service command

2003-09-05 Thread Bret Hughes
On Fri, 2003-09-05 at 15:46, Michael Schwendt wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, 5 Sep 2003 16:16:32 -0400, Mark Haney wrote: Jonathan Bartlett wrote: Remember that su - will alter your environment to include /sbin and /usr/sbin, while su will not. I

RE: Service Command

2003-03-07 Thread Rigler, Steve
Add /sbin and /usr/sbin to your path. If you are using bash for your shell add this to your ~/.bash_profile: PATH=$PATH:/sbin:/usr/sbin ; export PATH Alternatively you can just type the full path to the commands you need (eg /sbin/service). -Steve -Original Message- From: [EMAIL

Re: Service Command

2003-03-07 Thread Shannon Neumann
You need to use su - This will get you into root's environment. [EMAIL PROTECTED] wrote: Until recently I had ssh'd to my Redhat 7.3 machine with the root username. I have removed the login rights now and access the machine with a local user account, then su to root. Now there are a lot

Re: Service Command

2003-03-07 Thread Ashley M. Kirchner
[EMAIL PROTECTED] wrote: Until recently I had ssh'd to my Redhat 7.3 machine with the root username. I have removed the login rights now and access the machine with a local user account, then su to root. Now there are a lot of commands I can no longer run from anywhere like I have in the past.

Re: Service Command

2003-03-07 Thread Neumann, Shannon M
-Original Message-From: Shannon Neumann [mailto:[EMAIL PROTECTED] Sent: Friday, March 07, 2003 4:34 PMTo: Neumann, Shannon MSubject: [Fwd: Re: Service Command] Original Message Subject: Re: Service Command Date: Fri, 07 Mar 2003 16:14:55 -0500

Re: Service Command

2003-03-07 Thread Bret Hughes
On Fri, 2003-03-07 at 15:14, Ashley M. Kirchner wrote: [EMAIL PROTECTED] wrote: Until recently I had ssh'd to my Redhat 7.3 machine with the root username. I have removed the login rights now and access the machine with a local user account, then su to root. Now there are a lot of commands

Re: Service Command

2003-03-07 Thread David Busby
Title: Message Seems like the environment for root isn't getting read when you su to root. - Original Message - From: Neumann, Shannon M To: [EMAIL PROTECTED] Sent: Friday, March 07, 2003 13:35 Subject: Re: Service Command oops... i read your last post

Re: Service Command

2003-03-07 Thread Ashley M. Kirchner
Bret Hughes wrote: All of the above but keep in mind that su - (dash included) will setup root's environment including path. True, I forgot about that too, but that's because I don't su to root. I use sudo. :) -- W | I haven't lost my mind; it's backed up on tape somewhere.

RE: Service Command

2003-03-07 Thread Neumann, Shannon M
will probably fail. Shannon Neumann CIS Coordinator Indiana Institute of Technology [EMAIL PROTECTED] (260) 422-5561 ext. 2231 -Original Message-From: David Busby [mailto:[EMAIL PROTECTED] Sent: Friday, March 07, 2003 4:38 PMTo: [EMAIL PROTECTED]Subject: Re: Service Command

RE: Service Command

2003-03-07 Thread Bret Hughes
On Fri, 2003-03-07 at 15:52, Neumann, Shannon M wrote: My first message was to indicate that if you include the '-' in the command, then you should get in to root's environment. But, I think this is only the case if root has a valid shell listed in /etc/passwd. By setting root to have no