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.
I am using SuSE 6.4.
I am not sure what I did, but the KDE or Xsession for any user other than root is disabled. When I try to log in as a different user it says "Xsession: login for user <username> is disabled".
Does anyone know how to set the enable flag back again?
TIA for any leads,
Originally posted by concoran I am using SuSE 6.4.
I am not sure what I did, but the KDE or Xsession for any user other than root is disabled. When I try to log in as a different user it says "Xsession: login for user <username> is disabled".
Does anyone know how to set the enable flag back again?
TIA for any leads,
Are you starting KDE with 'startx'? Did you change any 'defualt windowmanger' settings in YaST?
Hi McLoed, Good to see you again,
I don't start KDE using 'startx', and I havn't made any changes to default WindowManager either. Everything was just fine until one day when SuSE disabled xsessio (KDE) login for any user other than root.
BTW, I tried 'init 2', and then logged in as a user1, and ran 'startx'. The KDE started for that user.
I also went to susewm in YaST, but was not able to figure out how to disable / enable xsession for users.
No, I haven't made any changes to KDE. Only one thing I did was to set the default window for user1 to be WindowMaker, which I later reset back to KDE. Other than that, I haven't made any changes.
I am a newbie, I just keep going to YaST and other setup tools, utilities and see what all they do, without changing any settings..
Thanks,
after a lot of searching I finally found the solution to this "stupid" problem which worked for me ( Suse 6.4 ).
When a user tries to login to the machine via xdm a script called Xsession ( dir should be something like /usr/X11R6/lib/X11/xdm ) is executed, which contains a block of code like
#
# Disable graphical login if normal login is disabled
#
login=false
while read sh ; do
if test "$sh" = "$SHELL" ; then
login=true
break
fi
done < /etc/shells
The problem occurs when the administrator creates a user account with the wrong shell or let us say a missing shell. Imagine you create a user called scott and with a default shell /usr/ksh. If you take a clooser look on /usr/ksh you will find out that this is only a link which points to /usr/bin/ksh. Now check the /etc/shells which may look like this:
If you put these values into the Xsession script you will see by whom all the trouble is caused by. Based on the fact that no /bin/ksh entry is included in the /etc/shells ( as the true ksh is in /usr/bin/ and in /bin there´s only a symbolic link) the situation goes beserk as the variable login is still false after all and the user get the beloved message ;-)
So simply modify your user accounts to a shell which is being listed in /etc/shells or try to add the missing entry in /etc/shells like /bin/ksh and try again.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.