Re: can't get the proper PATH variable with root

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sun, 12 Jan 2003 16:12:51 -0500, Derek Martin wrote:

> On Sun, Jan 12, 2003 at 07:55:11PM +0100, Michael Schwendt wrote:
> > On Sun, 12 Jan 2003 18:25:47 +0100, Ricardo Carrillo Cruz wrote:
> > 
> > > When I login in my machine with a normal user,the normal
> > > user's path is correct,i mean,it hasn`t access to /sbin
> > > /usr/sbin neither.The problem is that when i open a console, i
> > > turn myself root with su,the root user inherits the same path
> > > that the normal user has.¿Why? I' ve tried to put the correct
> > > path into the .bash_profile of root,but still doesn`t work.
> > 
> > Don't switch to user root, *log in* as root. Use either of
> > these:
> > 
> >   $ su --login
> >   $ su -l
> >   $ su -
> 
> This is one possible solution, depending on what the user wants to do.
> However, it is often undesireable, for a variety of reasons.  For
> example,

- -cut-

Derek, forgive my ignorance, but above I see a user who asks
specifically why turning to root with su inherits the normal user's
path. Hence I point him to a desirable (!) option that would solve
his particular problem. Therefore I find the beginning of your
comment (or should I say "correction") inappropriate. You're free to
expand on alternative solutions, though.

- -- 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+IfTO0iMVcrivHFQRAgeeAJ9FuqVz7/KrqK9EZ6NrrRU8Pm5oiACeJxSP
xflpgTd/0aWML8sPKYFCa8E=
=sniU
-----END PGP SIGNATURE-----



-- 
Psyche-list mailing list
Psyche-list@redhat.com
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux