login in red hat linux


 
Thread Tools Search this Thread
Operating Systems Linux login in red hat linux
# 1  
Old 04-02-2008
login in red hat linux

Hi,
I have got a very simple, but unresolved problem. I am trying to login in Red Hat Linux here. However the login shell is mentioned as csh in /etc/passwd file. I am unable to make out which file is executed on login - .bash_profile ? There is no file like .bash_login or .bash_tshrc.
Actually I need to update some PATH variables and I can not do since I don't know which file is that one.
Can somebody help me ?
# 2  
Old 04-02-2008
Do you have root access to the machine ? Use "env | grep $SHELL" to find out which shell is being assigned for you. Then look at the home folder for the respective .rc files. Also, /etc/profile may hold additional info on shells.
# 3  
Old 04-02-2008
There's a global setting for csh: /etc/csh.login - whatever the admin set in here would be the default.

You can, however, create your own ~/.cshrc file and set whatever you want to set in that file.
# 4  
Old 04-03-2008
Thank you

I could see that it was /bin/csh and could not find any .cshrc file. I created a .cshrc file and it is working now. Thanks to you all.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Fedora

Which is the better platform to learn UNIX/Linux (Kali Linux Vs. Red Hat or other)?

I just started a new semester and I started my UNIX class yesterday. I've already decided to use python along with my learning process but what I really want to use with it is Kali as my UNIX/Linux platform to learn off of since I already wanted to learn Cyber Sec. anyways. I just wanted to know if... (12 Replies)
Discussion started by: ApacheOmega
12 Replies

2. Linux

Error on smbclient login on Red Hat

I have the smbclient installed and I am able to see information from the '-L' option. But when I attempt to login I'm getting the "NT_STATUS_BAD_NETWORK_NAME". I was hoping for help, because I'm not sure what is supposed to go into the smb.conf file. My goal is to transfer files from my Linux... (2 Replies)
Discussion started by: islanderman
2 Replies

3. UNIX for Dummies Questions & Answers

how to know if i use "Red Hat Enterprise Linux" or "Red Hat Desktop" ?

how to know if i use "Red Hat Enterprise Linux" or "Red Hat Desktop" ? (2 Replies)
Discussion started by: ahmedamer12
2 Replies

4. Red Hat

RAID on Red Hat Linux 7.2

Hi all I have an old Compaq DL380 (G1) server with 4 hard disks. It is running Red Hat Linux 7.2 One of the disks died. I didn't build the box myself. How would I determine if software RAID was configured? I had a look a /etc/fstab, but it's only referring to ida/c0d0 The... (3 Replies)
Discussion started by: soliberus
3 Replies

5. Linux

Red Hat 9 Login Screen Help

As some users may know, Red Hat 9 uses a graphical login. This works perfectly fine, but one day I had a problem. I logged in as root and changed the resolution of the display. It told me to log out for the changes to take effect. I did...but was faced with my monitor going down to standby. It... (3 Replies)
Discussion started by: Alux
3 Replies

6. Linux

Red Hat Linux 9

Hello there! Will anybody please tell me some good links to online eBooks on Red Hat Linux 9 user experiences and the like. If the books are in PDF Format, it will be nice to read. Thanks for cooperation in advance. Enjoy using open source and breathe freely! JAM (5 Replies)
Discussion started by: Jawwad
5 Replies

7. UNIX for Dummies Questions & Answers

XP to Linux (Red Hat)

I have a PC running XP, and I have a PC that dual boots W2K and Red Hat Linux 7.3. I have the two connected via crossover cable, and the two can access each other when both are running windows. If I were to boot up Linux, can my XP PC telnet to the Linux PC? Any pointers or websites to... (3 Replies)
Discussion started by: lawadm1
3 Replies

8. UNIX for Dummies Questions & Answers

Slackware's Linux 3.0 VS Red Hat Linux 7.x

Hello guys, I got overzealous (I Think). I got the book Linux Unleashed that comes with the Slackware 3.0 Version of Linux for $2.00.I also have Red Hat Linux 7.2 (No book, just the OS).What I wanted to know was,other than the bells and whistles of Red Hat is there any significant difference... (2 Replies)
Discussion started by: perrylx
2 Replies

9. UNIX for Dummies Questions & Answers

Linux Red Hat 7.2 Problem

how come red hat doesn't have this programs which was already supposed to be on it?? take for instance, I was reading this Linux book that says for me to do some work in glint X11 client for packagement. it says glint is accessible from the command line or control panel. the problem is, I... (4 Replies)
Discussion started by: TRUEST
4 Replies

10. UNIX for Dummies Questions & Answers

Red Hat Linux 6.0

Ok here is my problem i do not know the command to load a driver for my network card in Ted hat linux 6.0 could sombody give me a hand. and if there is anyone that has a list of commands for red hat that would be great also (2 Replies)
Discussion started by: bbutler3295
2 Replies
Login or Register to Ask a Question