Alessandro Alocci napisał(a):
Alle 17:44, mercoledì 18 ottobre 2006, Arden ha scritto:
Using-blfs-book-cvs-html-2006-10-12
After installing, linux-PAM-0.99.4.0 then re-installing Shadow-4.0.15
and following the book's configuration scripts. when I su to root,
root's PATH= /bin:/usr/bin.
When I login as root the PATH looks right; /usr/local/sbin:/usr/
local/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin
Looking at all the files, I see that /etc/security/pam_env.conf is
entirely commented out except for one line at the end of the file;
PATH DEFAULT=/bin:/usr/bin OVERRIDE=${PATH}
Is this what is supplying the PATH? Can't figure out how this
happened. Where should I fix this?
Hi, /etc/security/pam_env.conf is installed so by default.
You can use:
su -
(notice the minus sign after the su command) to obtain the same
environment you have at login.
Alessandro Alocci
To have proper path when you issue:
su
(without -)
you have to add the needed path to /root/.bashrc
for example:
export PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
The book says that this in the last Note in chapter describing shadow.
Jerzy Goca (aka juras256)
---------------------
Panorama Internetu - prognoza pogody, poczta e-mail z największym załącznikiem,
SMS, wyszukiwarki: Gooru, Anonser, serwisy: randki, ogłoszenia, wakacje,
program TV, Kina, muzyka, DVD, newsy, inne.
http://www.panoramainternetu.pl/ (http://www.epf.pl/)
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page