LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 03-14-2003, 05:52 PM   #1
loran
Member
 
Registered: Jan 2003
Posts: 121

Rep: Reputation: 15
Angry login shell


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?
 
Old 03-14-2003, 06:11 PM   #2
onurb
Member
 
Registered: Dec 2002
Posts: 263

Rep: Reputation: 30
What distro ? At a text console or in X ?
Did you do "adduser" in the first place ?
 
Old 03-14-2003, 06:45 PM   #3
loran
Member
 
Registered: Jan 2003
Posts: 121

Original Poster
Rep: Reputation: 15
Slackware 8.1
X
yes I did
 
Old 03-14-2003, 06:49 PM   #4
onurb
Member
 
Registered: Dec 2002
Posts: 263

Rep: Reputation: 30
I do not get it; as you are in X you're already logged in as user, or not ?
 
Old 03-14-2003, 07:38 PM   #5
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
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.
 
Old 03-14-2003, 07:39 PM   #6
onurb
Member
 
Registered: Dec 2002
Posts: 263

Rep: Reputation: 30
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.
 
Old 03-14-2003, 07:55 PM   #7
cuckoopint
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 797

Rep: Reputation: 30
Quote:
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'
 
Old 03-14-2003, 08:21 PM   #8
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
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.
 
Old 03-15-2003, 04:51 PM   #9
loran
Member
 
Registered: Jan 2003
Posts: 121

Original Poster
Rep: Reputation: 15
nevermind, I created a new user and the problem seems fixed. I'll just diasable the user thats giving me trouble. Thanks.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to check in a script whether the shell is login or non login? frankie_DJ Programming 7 10-21-2015 11:09 AM
Difference between normal shell and login shell Manish Linux - General 7 11-14-2012 09:30 AM
wrong login shell prevent root login cefs99 Linux - Security 4 05-31-2006 09:28 AM
login shell?? Japan Lnx Linux - Newbie 8 01-22-2005 08:37 PM
How to login to bash shell inarin Linux - Newbie 1 10-07-2003 03:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:05 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration