LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 02-16-2006, 05:22 PM   #1
merchtemeagle
Member
 
Registered: Oct 2004
Location: Belgium
Distribution: Slackware 13.37
Posts: 512

Rep: Reputation: 31
KDM problems after power failure


After a power failure, I restarted my computer and noticed I could not choose my regular user account in the KDM login screen. When I entered it manually and tried to login, I got: "Your shell is not in /etc/shells".

The shell of my account was left blank, which defaults to /bin/sh. This is indeed not in /etc/shells, so I changed my shell to /bin/bash and everything is ok again.

My question is: what could have caused this, and why did the default stopped working?
 
Old 02-16-2006, 10:56 PM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
on most systems, /bin/sh is usually a symlink to ----> /bin/bash
recreate the symlink and put /bin/sh back in /etc/shells file
 
Old 02-17-2006, 07:30 AM   #3
merchtemeagle
Member
 
Registered: Oct 2004
Location: Belgium
Distribution: Slackware 13.37
Posts: 512

Original Poster
Rep: Reputation: 31
The symlink is still there:

$ ls -l /bin/sh
lrwxrwxrwx 1 root root 4 2006-02-09 21:10 /bin/sh -> bash*

It is impossible that a power failure took "/bin/sh" out of the "/etc/shells" file, is it not?
 
Old 03-20-2006, 10:19 AM   #4
merchtemeagle
Member
 
Registered: Oct 2004
Location: Belgium
Distribution: Slackware 13.37
Posts: 512

Original Poster
Rep: Reputation: 31
About the "Your shell is not in /etc/shells" error: I installed Slackware somewhere else, and even on a fresh install, a newly created user (with no shell specified in /etc/passwd), gets this error. Could it be a bug?
 
  


Reply



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
Repeated RAID 5 Remount Problems After Power Failure HalNineThousand Linux - General 3 01-03-2006 01:18 PM
Power Failure On AC power ONLY Gateway 5300 marti35 Linux - Laptop and Netbook 1 05-22-2005 10:14 AM
KDM won't auto-start after power failure ltb Linux - Newbie 1 03-16-2005 04:59 PM
problems booting up after power failure. adrianbbs Linux - Newbie 1 08-23-2004 08:38 PM
Crash after power failure deesto *BSD 8 07-29-2003 01:11 PM

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

All times are GMT -5. The time now is 11:34 AM.

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