Unix Technical Forum

Graphical login

This is a discussion on Graphical login within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Ian Bell wrote: > On the same subject I just set up slack 10 to use kdm as the ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #11 (permalink)  
Old 02-19-2008, 03:42 PM
Jeffrey Froman
 
Posts: n/a
Default Re: Graphical login

Ian Bell wrote:

> On the same subject I just set up slack 10 to use kdm as the login
> manager rather than a console login followed by startx. Works fine for
> root but any other user gets a message 'your shell is not listed in
> /etc/shells'.**This*file*contains*a*list*with*entries*l ike*/bin/bash.
> Any*idea*what*the*problem*is?


Some applications that manage logins require that the user's "shell" be a
"valid" one. The shell is the program that provides your user interface in
console mode. To be "valid" just means that it is listed in /etc/shells.

It is odd to have a user without a valid shell, and it makes me wonder how
you created that user. In any case though, to fix it, you'll need to log in
as root, and open a terminal application (like konsole, if you're using
KDE).

To see what shell a user has (and other info), run the command:

# finger <username>

(Substitute a real username for <username>). A typical valid shell is
"/bin/bash", and to set the user's shell to that you could run the command:

# usermod -s /bin/bash <username>

After that you should be able to log in as that user, using KDM.

Hope that helps,
Jeffrey
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 02-19-2008, 03:42 PM
Variant
 
Posts: n/a
Default Re: Graphical login

Rich Grise <null@example.net> wrote:
> Symlink?


Yes, see my example.

--
/* - =- = -=-=-=- Variant -=-=-=- = -= - */
/* v a r i a n t @ r o o t s h e l l . b e */
/* - =- = -=-=- - --===-- - -=-=- = -= - */
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 02-19-2008, 03:43 PM
Ian Bell
 
Posts: n/a
Default Re: Graphical login

Jeffrey Froman wrote:
> Ian Bell wrote:
>
>
>>On the same subject I just set up slack 10 to use kdm as the login
>>manager rather than a console login followed by startx. Works fine for
>>root but any other user gets a message 'your shell is not listed in
>>/etc/shells'. This file contains a list with entries like /bin/bash.
>>Any idea what the problem is?

>
>
> Some applications that manage logins require that the user's "shell" be a
> "valid" one. The shell is the program that provides your user interface in
> console mode. To be "valid" just means that it is listed in /etc/shells.
>
> It is odd to have a user without a valid shell, and it makes me wonder how
> you created that user. In any case though, to fix it, you'll need to log in
> as root, and open a terminal application (like konsole, if you're using
> KDE).
>
> To see what shell a user has (and other info), run the command:
>
> # finger <username>
>
> (Substitute a real username for <username>). A typical valid shell is
> "/bin/bash", and to set the user's shell to that you could run the command:
>
> # usermod -s /bin/bash <username>


For some reason it was set to /bin/sh which is symlinked to /bin/bash.
I used kuser to set up the user. /bin/sh is its default shell
setting. I have changed it now the /bin/bash so I'll try again.
Thanks for the help.


--
Ian Bell
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 02-19-2008, 03:43 PM
Ian Bell
 
Posts: n/a
Default Re: Graphical login

Ian Bell wrote:
> Jeffrey Froman wrote:
>
>> Ian Bell wrote:
>>
>>
>>> On the same subject I just set up slack 10 to use kdm as the login
>>> manager rather than a console login followed by startx. Works fine for
>>> root but any other user gets a message 'your shell is not listed in
>>> /etc/shells'. This file contains a list with entries like /bin/bash.
>>> Any idea what the problem is?

>>
>>
>>
>> Some applications that manage logins require that the user's "shell" be a
>> "valid" one. The shell is the program that provides your user
>> interface in
>> console mode. To be "valid" just means that it is listed in /etc/shells.
>>
>> It is odd to have a user without a valid shell, and it makes me wonder
>> how
>> you created that user. In any case though, to fix it, you'll need to
>> log in
>> as root, and open a terminal application (like konsole, if you're using
>> KDE).
>>
>> To see what shell a user has (and other info), run the command:
>>
>> # finger <username>
>>
>> (Substitute a real username for <username>). A typical valid shell is
>> "/bin/bash", and to set the user's shell to that you could run the
>> command:
>>
>> # usermod -s /bin/bash <username>

>
>
> For some reason it was set to /bin/sh which is symlinked to /bin/bash.
> I used kuser to set up the user. /bin/sh is its default shell setting.
> I have changed it now the /bin/bash so I'll try again. Thanks for the help.
>
>


That worked fine. For some reasin /bin/sh is not listed in
/etc/shells but I have added it to avoid the same problem in future.

Ian

--
Ian Bell
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:59 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com