Opened 22 years ago

Closed 22 years ago

Last modified 22 years ago

#374 closed defect (invalid)

Environment settings between system user and remote user.

Reported by: mstjacques@… Owned by: lfs-book@…
Priority: lowest Milestone:
Component: Book Version: CVS
Severity: trivial Keywords:
Cc:

Description

A quote from "Learning the Bash Shell" 2nd edition, O'Reilly. p. 59.

".bash_profile is read and executed only by the login shell. If you start up a new shell (a subshell) by typing bash on the command line, it will attempt to read commands from the file .bashrc"

The same can be said when using su. So when we set up the environment settings in .bash_profile, using su will not enable these settings.

Change History (1)

comment:1 by gerard@…, 22 years ago

Resolution: invalid
Status: newclosed

Not entirely true. The book says to run "su - lfs". The dash there tells su to start a login session in which case .bash_profile will be read as planned.

Note: See TracTickets for help on using tickets.