Results 1 to 10 of 12
I changed the default runlevel to 4 to it boots to kdm, but i can't log in to my normal user account, only root, if i try loggin in it ...
- 01-01-2006 #1
Add user login to /etc/shells?
I changed the default runlevel to 4 to it boots to kdm, but i can't log in to my normal user account, only root, if i try loggin in it says something about my login script not in /etc/shells how do i log in, anyone know?
- 01-01-2006 #2
Could you post the exact error message you get?
- 01-01-2006 #3
Sure, here you go
it says "Your login shell is not listed in /etc/shells"
and incase you don't believe me, i took a picture of it
(another thing i don't get with windows, a image with a .tif extension is 8.63 mb but with .tiff with 2 f's its only 200kb, exactly the same thing, weird, eh?)
http://img391.imageshack.us/img391/4581/ssa400845im.png
- 01-01-2006 #4
Hmm, do you have something like the following in your /etc/shells
# /etc/shells: valid login shells
/bin/sh
/bin/bash
/bin/tcsh
/bin/csh
/bin/esh
/bin/ksh
/bin/zsh
/bin/sash
see if having that works, if it doesn't come back.
- 01-01-2006 #5
My /etc/shells looks like
should i replce mine with yours?Code:/bin/bash /bin/tcsh /bin/csh /bin/ash /bin/ksh /bin/zsh
- 01-01-2006 #6It looks fine, searching using Google I came across this thread which might be of help.
Originally Posted by Game master pro
- 01-01-2006 #7
Okay, which shell are you currently trying to use?
- 01-01-2006 #8Linux Newbie
- Join Date
- Jun 2005
- Posts
- 123
Check the path to your preferred shell for the user 'gmp'.
This is listed in /etc/passwd
The line with my non-root account looks like:
tom
:1000:100:Tom F,,,:/home/tom:/bin/bash
So check that your line ends with /bin/bash (assuming you want to use bash). Also check to see whether or not /bin/bash exists, and it's permissions.
To check these you'll have to mount your root partition from other distribution. I recommend the SystemRescueCD distribution. Download it, burn it, boot it, check /etc/passwd.
- 01-04-2006 #9
I edited /etc/shells to have /bin/bash at the end and take it off the beginning, it did nothing at all, it /etc/passwd there is nothing after /home/gmp indicating any shell i will post what it says when im on my computer
- 01-04-2006 #10Linux Engineer
- Join Date
- Nov 2004
- Location
- Ft. Polk, LA
- Posts
- 796
I believe you have just found the problem. See man page for passwd(5) for more info.
Originally Posted by Game master pro


Reply With Quote