  | | | path fudge | path fudge 2003-06-08 - By Stewart M. Ives
Back If you login as a user and then you:
su
And provide the root password when prompted then you will end up with a # prompt BUT the same path as you originally logged in as the user and not the root path.
If you login as a user and then you:
su -
And provide the root password when prompted then you will end up with a # prompt AND root's path which includes /sbin and /usr/sbin.
stew
-- --Original Message-- -- From: enigma-list-admin@(protected) [mailto:enigma-list-admin@(protected)]On Behalf Of Cameron Simpson Sent: Sunday, June 08, 2003 12:16 AM To: enigma-list@(protected) Subject: Re: path fudge
On 01:24 08 Jun 2003, Oisin C. Feeley <ofeeley@(protected)> wrote: | On Sat, 7 Jun 2003, Michael Fratoni wrote: | >On Saturday 07 June 2003 08:25 pm, Cameron Simpson wrote: | >> On 13:54 07 Jun 2003, jdow <jdow@(protected)> wrote: | >> | Usually one wants to do the module "thing" as root. That's why /sbin | >> | and /usr/sbin are not on the standard user path. So I suspect the | >> | proper way to fix it is to perform the operation as root. | >> | >> Yeah, but on RedHat /sbin's not in root's $PATH either:-( | > | >I don't have a machine running 7.2 at the moment. | >/sbin is in root's $PATH on my 7.3, 8.0, and 9 machines: [...] | Me too. Isn't this disparity the result of doing "su root" versus "su | - root", where the latter behaves as a login shell?
I'm going to have to dig more deeply then - I definitely run into this a lot at work. I'll report back when I've figured out what's different. -- Cameron Simpson <cs@(protected)> DoD#743 http://www.cskk.ezoshosting.com/cs/
What I want is Facts. Teach these boys and girls nothing but Facts. Facts alone are wanted in life. Plant nothing else, and root out everything else. - Charles Dickens John Huffam 1812-1870 Hard Times [1854]
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ enigma-list mailing list enigma-list@(protected) https://www.redhat.com/mailman/listinfo/enigma-list
--- Outgoing SofTEC USA mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.488 / Virus Database: 287 - Release Date: 6/5/2003
|
|
 |