A question about login shells
randy at linuxfromscratch.org
Mon Aug 22 18:06:01 PDT 2005
Mike Hernandez wrote these words on 08/22/05 19:56 CST:
> maybe someone else has the cluebat handy?
I do the following and it works for me to provide a consistent
access to all my preferred login settings, regardless whether a
login or non-login shell:
create a .profile
rml at rmlinux: ~ > cat .profile
if [ -f ~/.bashrc ]; then
create a .bashrc
rml at rmlinux: ~ > cat .bashrc
[snipped the rest, the important thing is to source /etc/profile]
Then, in /etc/profile, do whatever you want all users to see.
Works for me.
rmlscsi: [GNU ld version 126.96.36.199.2 20041220] [gcc (GCC) 3.4.3]
[GNU C Library stable release version 2.3.4] [Linux 2.6.10 i686]
19:58:00 up 142 days, 19:31, 3 users, load average: 0.00, 0.00, 0.05
More information about the blfs-support