LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   bash_profile & bashrc (https://www.linuxquestions.org/questions/linux-newbie-8/bash_profile-and-bashrc-72857/)

c1p3r 07-15-2003 05:10 AM

bash_profile & bashrc
 
RedHat 8
Hi there,

I have troubles trying the user-specific profiles to be executed / read when doin a telnet / ssh session.

What I have done :

I have added echoes to the following files
/etc/bashrc
/etc/profile
/usr/home/root/.bashrc
/usr/home/root/.bash_profile
/usr/home/fred/.bashrc
/usr/home/fred/.bash_profile

when I log in as root or su - to root I get my echoes from
/etc/bashrc
/etc/profile
/usr/home/root/.bashrc
/usr/home/root/.bash_profile

which is fine.

but....

when I log in as fred
I only get redirected to /usr/home/fred with no echoes.
this happens on both sh and bash
when I chsh fred to /bin/ksh I get an echo from
/etc/profile

and no other echoes

when I chsh fred to /bin/csh then I get a unknown group error.
and are returned to /usr/home/fred

Any suggestions as to what I can do so that it reads/executes .bashrc and/or .bash_profile in /fred/ - becauase I need to fire up customised scripts for different users.


:eek:


All times are GMT -5. The time now is 07:03 PM.