Results 1 to 7 of 7
I typed in my console: chsh [I was a root] and then I logged out. I logged back in and when I typed su RET Password it said: "Not a ...
- 09-25-2005 #1Just Joined!
- Join Date
- Sep 2005
- Location
- BG
- Posts
- 6
Solved: I messed up something
I typed in my console: chsh [I was a root] and then I logged out. I logged back in and when I typed su RET Password it said: "Not a Shell" . I've tried so many things - but the file /etc/passwd is messed up and the root is: ksh [it must be /bin/bash[
I've tried also several programs to read the file system under windows - but they have no write privileges. Can you tell me how can I solve my problem - I think I must change the file permissions.
- 09-25-2005 #2Linux Enthusiast
- Join Date
- Jun 2005
- Location
- The Hot Humid South
- Posts
- 602
There's a file somewhere that specifies what the user's shell is. I think the file is /etc/shells. You'll need to be root to change it, so that might be a problem for you, but if you have sudo privilages use that.
- 09-25-2005 #3Just Joined!
- Join Date
- Sep 2005
- Location
- BG
- Posts
- 6
I know the file: it is called: /etc/passwd
I don't have such privileges!
- 09-25-2005 #4Linux Newbie
- Join Date
- Jul 2005
- Location
- Turn Around
- Posts
- 202
nope... i believe its actually /home/username/.profile or /home/username/.bashrc
could be wrong tho...
- 09-25-2005 #5Just Joined!
- Join Date
- Sep 2005
- Location
- BG
- Posts
- 6
Whatever it is - I must have root privileges to change this file...but I don't have because it says: Not A Shell and this is the problem!
- 09-25-2005 #6Linux Enthusiast
- Join Date
- Jun 2005
- Location
- The Hot Humid South
- Posts
- 602
I never said you had to do it in your current distro. Just boot into any old rescue distro (if you have a floppy drive, I recommend tomsrtbt), mount the partition where the file is to be found, and change it manually.
- 09-25-2005 #7Just Joined!
- Join Date
- Sep 2005
- Location
- BG
- Posts
- 6
OK 10x a lot - it worked - I've changed the attributes with: chmod and then I changed the text!


Reply With Quote
