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" wi

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

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. > > > >

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 tid

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 ro

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, someo

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 wha

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 Automatic

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 l

RE: Service Command

2003-03-07 Thread Neumann, Shannon M
;su -' command 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]Subjec

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 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 p

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 c

Re: Service Command

2003-03-07 Thread Neumann, Shannon M
. 2231   -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

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. The

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 of

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 PR