Re: PATH variable--where is it?
On Mon, Oct 29, 2001 at 10:05:43PM -0600, the Edward Blevins wrote:
> On Mon, Oct 29, 2001 at 09:11:38PM -0600, Gary Turner wrote:
> > Where is the path variable stored?
> check out /etc/login.defs
Very interesting. (I overlooked this.)
So this /etc/login.defs defines PATH provided by login. Then
/etc/profile is persed by shell and export new path, if it is defined.
Deeper question is "What is a PATH before login?"
Specifically, What is PATH for /etc/rcS.d/ scripts? Some scripts
(modutils) defines PATH inside. Are these hardcoded in init?
I know $HOME in these init script are not /root but /.
Just curious. :-)
~\^o^/~~~ ~\^.^/~~~ ~\^*^/~~~ ~\^_^/~~~ ~\^+^/~~~ ~\^:^/~~~ ~\^v^/~~~
+ Osamu Aoki <email@example.com>, GnuPG-key: 1024D/D5DE453D +
+ My debian quick-reference, http://www.aokiconsulting.com/quick/ +