DamnSmallLinuxThis forum is for the discussion of DamnSmallLinux.
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.
Must admit to probably the stupidest mistake one can make short of using the CD tray for a coffee cup holder...have apparently forgotten the root password in Damn Small Linux. Had DSL installed on HD, had everything configured, rebooted the computer, got to the "Box Login" prompt, entered DSL for the dsl user, and entered the password...or what I thought was the password and sorry, no dice. Same if trying to log in as root.
Booted the computer from a DSL iso CD and mounted hda2. Opened a terminal session and entered "sudo su". Got a command prompt as root. Edited /etc/passwd and /etc/shadow with vi. Removed everything between the first and second colon for both root and DSL users so I think neither should have a password. Saved both passwd and shadow files, rebooted computer without the CD. Still got the "Box Login" prompt. Tried logging in as DSL without a password and as root without a password, again, no dice.
Where do I go from here? I can reinstall DSL but will lose everything configured so far. Would probably serve me right, but would like to avoid that if possible.
Reply to linus72: I believe I did a full install. I intended this PC to be a computer to download and configure software for a compact flash from which a little hard drive-less car computer will boot.
Reply to Chrism01: I think I have tried that but I will do it again to be sure. I've tried so many times to edit /etc/passwd and /etc/shadow that I can't remember the exact steps I've taken each time. I think though that I've booted from the iso cd and made it to the xvesa desktop environment. From there I've opened a terminal window, typed sudo su, then passwd and I've changed the root password. Then I've done the same as root for the dsl user. Once I reboot from the hard drive, the password I've just set doesn't work. After examining /etc/passwd, it looks the same as it did before I changed the password. I wonder if when I boot from the cd if I don't have write permissions on /etc/passwd? I am logged in as root so you'd think I should have rwx privileges on just about anything. I'll try as you suggested when I return home this evening and see what happens.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.