LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   .cshrc file not in home directory on RH8 or RH9? (https://www.linuxquestions.org/questions/linux-newbie-8/cshrc-file-not-in-home-directory-on-rh8-or-rh9-62515/)

aaron268 05-29-2003 12:33 PM

.cshrc file not in home directory on RH8 or RH9?
 
Hello, I have some experience on solaris and .cshrc login scripts. Now I'm trying to set up a RH8 and RH9 system and have multiple user accounts defaulting to the C shell /bin/csh

So I go to the accounts home directories to edit there .cshrc files, and there not there? I do some research and discover that red hat uses .tcshrc, that file is not there either? I see the bash log in script in all the home directories. why arent these c shell log in script files there be default also ? I have looked at a few books and several websites and they all seem to indicate the .cshrc, and/or .tcshrc file should be in each home directory be default but there not. How can I get Red Hat linux to put a default .cshrc, or .tcshrc file in users home directories when I create a new user?

thanks
:newbie:

iceman47 05-29-2003 04:49 PM

Write a script that asks for a new user and then creates the file?

green_dragon37 05-29-2003 05:00 PM

Put the file in /etc/skel.

Ian

iceman47 05-29-2003 05:03 PM

*iceman47 slaps himself for forgetting that*
more info on the BLFS site:
http://beyond.linuxfromscratch.org/v...tlfs/skel.html

aaron268 05-30-2003 09:01 AM

Thanks for the help.
I see now that everything in "/etc/skel" gets copied to a new users home directory, strange thing is I wasn't able to find the original version of /etc/skel/.bashrc the closest one I found was /root/.bashrc so I copied /root/.cshrc to /etc/skel and removed the aliases. and that solved my problem.


All times are GMT -5. The time now is 12:19 PM.