Debian ignores /etc/profile
Andrew Hammond
ahammond-swQf4SbcV9C7WVzo/KQ3Mw at public.gmane.org
Tue Oct 26 15:59:05 UTC 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Oliver Meyn wrote:
| Hi TLUGgers,
|
| I recently upgraded my 2 months out of date debian unstable system and
| now it appears to have stopped reading /etc/profile on login by normal
| users. Root seems to pick up the environment variables set in there but
| no sign of them for lusers (and the file is a+r). Any ideas on how
| debian normally incorporates /etc/profile in startup/login, and why it
| might have broken for me?
Well, assuming you're using bash (the default shell) the man page says:
"When bash is invoked as an interactive login shell, or as a
non-interactive shell with the --login option, it first reads and
executes commands from the file /etc/profile, if that file exists. After
reading that file, it looks for ~/.bash_profile, ~/.bash_login, and
~/.profile, in that order, and reads and executes commands from the
first one that exists and is readable. The --noprofile option may be
used when the shell is started to inhibit this behavior."
I'd guess that you need to a+x it as well.
- --
Andrew Hammond 416-673-4138 ahammond-swQf4SbcV9C7WVzo/KQ3Mw at public.gmane.org
Database Administrator, Afilias Canada Corp.
CB83 2838 4B67 D40F D086 3568 81FC E7E5 27AF 4A9A
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
iD8DBQFBfnRIgfzn5SevSpoRArbqAKCmaYBre7YrJld07PwiFk6FI9ZB8ACffT+X
LMadb9JVFPeY3dcWVt42/t4=
=RhJj
-----END PGP SIGNATURE-----
--
The Toronto Linux Users Group. Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
More information about the Legacy
mailing list