#374 closed defect (invalid)
Environment settings between system user and remote user.
Reported by: | Owned by: | ||
---|---|---|---|
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.
Note:
See TracTickets
for help on using tickets.
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.