A question about login shells

Randy McMurchy 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
    . ~/.bashrc
fi

create a .bashrc

rml at rmlinux: ~ > cat .bashrc
. /etc/profile

[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.

-- 
Randy

rmlscsi: [GNU ld version 2.15.94.0.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 mailing list