LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-15-2003, 05:10 AM   #1
c1p3r
LQ Newbie
 
Registered: Jul 2003
Location: South Africa
Posts: 1

Rep: Reputation: 0
Question 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.


 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bashrc or bash_profile ? ARCIS_house Linux - Newbie 6 07-21-2005 02:09 PM
.bashrc .bash_profile Soulful93 Slackware 4 05-03-2005 03:02 AM
~/.bashrc, ~/.bash_profile Sinope Linux - Newbie 6 08-17-2004 02:40 AM
.bashrc or .bash_profile? statmobile Linux - Newbie 1 02-04-2004 09:08 PM
.bashrc vs .bash_profile xor3 Linux - Newbie 1 08-16-2003 12:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration