Slackware 14: Can not log in, root and users not recognized
SlackwareThis Forum is for the discussion of Slackware Linux.
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.
Slackware 14: Can not log in, root and users not recognized
Hello guys,
I'm a novice user with slackware and I found a problem with my distribution slackware 14 (3.2.45). Using the kde desktop manager with two user sessions, in the transition from one session to another, the system does not recognize the passwords of both users (root and myuser) so I rebooted the machine. Booting Slackware from LILO several errors appear, but among these I can read only one "unknown user 'root' in bus configuration file". Result, I can no longer access with none of the two users. Being a novice user how can I fix it or at least log in to troubleshoot the problem?
I apologize for my bad english, thanks in advance.
Location: Geneva - Switzerland ( Bordeaux - France / Montreal - QC - Canada)
Distribution: Slackware 14.2 - 32/64bit
Posts: 609
Rep:
How did you change your root password ? And how did you add the other user account ?
To do some forensics you can boot with Slackware Install DVD and mount your partition under /mnt, then you can check your /mnt/etc/passwd and /mnt/etc/shadow files to see if they're well formed.
How did you change your root password ? And how did you add the other user account ?
To do some forensics you can boot with Slackware Install DVD and mount your partition under /mnt, then you can check your /mnt/etc/passwd and /mnt/etc/shadow files to see if they're well formed.
I changed them using the 'passwd' and 'adduser' commands. Running a live distro i noticed that in the shadow file there is a password for root but at the login i can't access.
Try to boot at runlevel 3 (When you see lilo's boot screen, press [Tab] then type e.g. "Linux 3") then log in as a regular user. If that works type "startx".
Please tell us what you have in /etc/rc.keymap, and if you have a file called /etc/X11/xorg.conf.d/90-keyboard-layout.conf, what's the "XkbLayout" setting.
Also IIRC KDE stores its kernel keyboard map elsewhere, unfortunately I'm not a KDE user, please someone remind us where if that's actually the case.
Last resort, erase root's password in /etc/shadow.
Last edited by Didier Spaier; 09-27-2013 at 05:26 AM.
If the system does not boot up and the messages are only on the screen, about the only way to post them is with a camera image. To do maintenance/fixes on such a system, you can boot from the DVD and mount the hard drive's root filesystem. Not only check if the right files are present and have the right content, also be sure their permissions, and the permissions of all directories above, all the way to "/", are correct.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.