LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   slackware GUI login (https://www.linuxquestions.org/questions/slackware-14/slackware-gui-login-636003/)

warun 04-17-2008 09:13 AM

slackware GUI login
 
hello,

i'm using slackware 12... i edited the /etc/inittabb file so that the system asks for the login in GUI rather than normal command prompt. I've two users on my system (root and a user). When i try to login through the GUI as a normal user, even though i give a correct username and password it's giving an error as entry not present in /etc/shells... what's the problem and also what is the solution..

thanks in advance...

ChrisAbela 04-17-2008 09:33 AM

Hi warun,

This happened to me as well.

In Slackware you have to specify your shell.

Next time use the adduser script to add users:-

# adduser
and choose the default shell, or:

# adduser -m user -s /bin/bash

As you already have defined a user:

# usermod -s "bin/bash" user

Chris
P.S. I strongly recommend reading the slackbook
P.P.S. I think that for other distros this would not be necessary

+Alan Hicks+ 04-17-2008 01:45 PM

Let me guess. You used KDE's kuser to create the user right? You should have paid better attention as kuser defaults to an "Empty Shell", probably for "security" reasons. Since no shell is added to /etc/passwd for that user, KDM (or whatever you're using for your login manager) is complaining.

I tested a patch for kuser that made it default to whatever shell in finds first in /etc/shells, but AFAICT it hasn't been merged upstream and isn't present in -current.


All times are GMT -5. The time now is 10:32 PM.