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

[EMAIL PROTECTED]: ~ > cat .profile
if [ -f ~/.bashrc ]; then
    . ~/.bashrc
fi

create a .bashrc

[EMAIL PROTECTED]: ~ > 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
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to