Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
When I try to login as a user (as opposed to root)i get a message saying...
"Your login shell is not listed in etc/shell" Any advice as to how I can fix this?
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771
Rep:
Login as root ( since you said you can ) and check your /etc/passwd to see if the final entry of ( colon delimited ) line that starts with the username in question is a valid shell. /bin/bash is most common.
Or better, post the line and someone will have a better answer for you.
Sorry, i got interrupted and did send the first part already.
1) I suppose you start X as root and then want to login as normal user ?
Why not do it the other way, login as user, startx and then, if needed, su ?
If that does not work:
2) As root, add a second (temporary) user see if that works and transfer the files of your fist home dir to the new user dir. Delete the fist user and add him as new, then transfer the files back again. After that you can delete the temp-user.
Login as root ( since you said you can ) and check your /etc/passwd to see if the final entry of ( colon delimited ) line that starts with the username in question is a valid shell. /bin/bash is most common.
Actually, I think its a lot more common to have a symbolic link /bin/sh -> bash (or whatever)
but you're right: check /etc/passwd for a valid shell at login. If you have a problem posting your file (which you should), see 'man 5 passwd'
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771
Rep:
Quote:
Originally posted by cuckoopint Actually, I think its a lot more common to have a symbolic link /bin/sh -> bash (or whatever)
/bin/sh for login shell..
If we're talking UNIX(TM) , yeah. With reasonably modern linux distros, the default shell has always been a direct /bin/bash ( the Bourne Again SHell - which is a clone of the Bourne shell aka /bin/sh )
The symlink /bin/sh usually exists to take care of legacy issues, but it is never referenced in /etc/passwd.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.