LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 04-23-2003, 11:03 PM   #1
sadmac
LQ Newbie
 
Registered: Apr 2003
Posts: 5

Rep: Reputation: 0
user comand prompt changed - don't know why


I've been learning Linux and have been practicing at the command prompt in a terminal window. I did something to change the prompt, but I don't know what. It also appears when I do ctrl+alt+f1 and log in there. This is my personal account without root permissions.

It used to show [sadsac@ip96 sadsac]$.

Now it shows [sadsac@ip96 ~]$.

The first thing I noticed when I logged in after shelling out with the ctrl+alt+f1 was the missing "fortune." I had this set up to post a quote as soon as I logged in. The next thing I noticed was that I could not set an alias. I tried "alias cls="clear"" to mimic the DOS equivalent. It didn't work. It works however when I log in as root, or another test account which, like mine, does not have root permissions. I thought maybe a second instance of my home directory was created, but that is not the case.

How can I get ride of this state and get it back to my original user configuration? I'm trying to learn Linux by going through a tutorial and I can't do the practices because my account is broken. I also would prefer not to use the root account for practicing as I'm sure you understand.

I would be grateful for any insight on the matter.

Thanks, sadsac
 
Old 04-23-2003, 11:42 PM   #2
sadmac
LQ Newbie
 
Registered: Apr 2003
Posts: 5

Original Poster
Rep: Reputation: 0
Re:user comand prompt changed - don't know why

Well, I guess I'm a victim of timing. This is sadsac, replying to his own post. I'm hoping that this may help another newbie avoid the problem I posted.

I started my Linux study again, and they mentioned something about the /etc/passwd file. I didn't think this had anything to do with my problem, but something in the explanation caught my attention and that was "The information in the /etc/passwd file determines which directory is considered your pwd."

I wasn't sure how this applied but I logged in as root, and opened the /etc/passwd file in gedit. I went down to the line that had my name on it and found the last entry on the line said "/bin/csh" and then I remembered that I had been trying out changing shell types. I was sure I got the shell back to bash but somehow it modified my entry in the /etc/passwd file. I wasn't aware of this connection until I followed a feeling regarding the information I read mentioned above.

I hope I haven't wasted anyone’s time, but I still don't know why it kept the "csh" entry when in following the examples, I changed it back to bash. I also entered an "echo $SHELL" at the time and it did display "/bin/bash" so maybe I have a question after all.

Thanks, sadsak
 
Old 04-24-2003, 12:40 AM   #3
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix, 98,2000 + various
Posts: 3,171

Rep: Reputation: 51
chsh might help
 
  


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
running scripts as changed user rammya Linux - Software 2 04-07-2004 11:42 PM
Prompt w/ current dir and user Jair Slackware 2 03-15-2004 06:16 PM
User prompt Phaethar Red Hat 9 11-21-2003 01:41 PM
How can user names be changed? petercool LQ Suggestions & Feedback 4 05-19-2003 08:59 AM
Check if user has changed PW fenriswolf Linux - Security 3 04-29-2003 09:01 PM


All times are GMT -5. The time now is 09:18 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration