LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-29-2003, 01:33 PM   #1
aaron268
LQ Newbie
 
Registered: Apr 2003
Posts: 13

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

Last edited by aaron268; 05-29-2003 at 01:35 PM.
 
Old 05-29-2003, 05:49 PM   #2
iceman47
Senior Member
 
Registered: Oct 2002
Location: Belgium
Distribution: Debian, Free/OpenBSD
Posts: 1,123

Rep: Reputation: 47
Write a script that asks for a new user and then creates the file?
 
Old 05-29-2003, 06:00 PM   #3
green_dragon37
Member
 
Registered: Oct 2002
Location: Lower Alabama
Distribution: Slackware, OpenBSD 3.9
Posts: 344

Rep: Reputation: 31
Put the file in /etc/skel.

Ian
 
Old 05-29-2003, 06:03 PM   #4
iceman47
Senior Member
 
Registered: Oct 2002
Location: Belgium
Distribution: Debian, Free/OpenBSD
Posts: 1,123

Rep: Reputation: 47
*iceman47 slaps himself for forgetting that*
more info on the BLFS site:
http://beyond.linuxfromscratch.org/v...tlfs/skel.html
 
Old 05-30-2003, 10:01 AM   #5
aaron268
LQ Newbie
 
Registered: Apr 2003
Posts: 13

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how to locate file in home directory learnfast Linux - Newbie 3 03-14-2005 08:15 AM
The .cshrc file is missing from the user homedir vut Linux - Software 1 11-23-2004 09:28 AM
Where is the.cshrc file in mandrake10.0? lbabey Linux - Newbie 1 11-08-2004 04:55 PM
Samba with ADS as a home directory file server? xwoz Linux - Software 0 08-16-2004 08:50 AM
.xession-errors file in my home directory drxsmurf Linux - Software 3 05-06-2004 10:01 PM


All times are GMT -5. The time now is 10:33 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration