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
-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
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.
> >
> >
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
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
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
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
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
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
;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
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.
+--
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
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
.
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
[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
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
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
17 matches
Mail list logo