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.
One weird problem happened to me. I cannot login as root. I swear that I have not change my root password, but somehow, the machine just don't let me logging in. I don't have the USB bootdisk with me, and I only have the install DVD with me. What can I do? I'm thinking about wiping out the thing and reinstall it (I have /home on a different partition, so I don't worry much about losing the data). But is there anything I can do before coming to such drastic measure.
yeah that IS drastic, and there's no way it could "forget" a password... on the bootloader prompt, edit the boot command (press "e" on grub, can't remember what it is on lilo if that's what slackware still uses), and just add a "1" to the line then boot. this will boot you to single user mode, automatically logging you in as root, where you can run "passwd" to set the password to whatever you want.
And if that doesn't work, you can use a live or installation CD/DVD, mount the root partition and edit /etc/shadow removing the password field for user "root". You can set it to something non-empty with "passwd" once you boot back to your normal system.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.