[SOLVED] ~Current: User can't log into X on New install
Slackware - InstallationThis forum is for the discussion of installation issues with Slackware.
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.
Try to add another user using the adduser script (not useradd). When it asks about supplementary groups, it tells you to press UP to use a list of selected groups.
With the ups & downs, I started over with a new install of current while this was easy. Installed a user with
Code:
useradd -g user <name>
and then gave the new user a password.
But I can't log into runlevel 4 with the new user. I can log into a runlevel 3 console, but I can only use X as root. Any ideas?
My guess is that the user needs an existing homedirectory if the runlevel is 4 (graphical login). If you login at the console without having a homedir, you end up in the '/' directory if my memory serves me well, but that's different in runlevel 4.
The "useradd" command will not create a homedirectory even if that directory does not yet exist, unless you specify the "-m" parameter to useradd. The Slackware interactive script "adduser" uses that "-m" parameter; use adduser instead of useradd like Petri already recommended!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.