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.
Okay...I did it, broke the cardinal rule and was running in root. It was only for a few minutes, right after the install, while I was trying to figure out how to get a non-root user added.
I'm not the most experienced Linux user, most of my time has been at school just simply using GCC and KDE.
I tried to change it so that it would login with bash (using chsh) and put in the wrong directory for bash (just put bash instead of the actual directory).
Unfortunately, now I cannot login as root, and I have no other accounts created yet.
The machine I'm running on is an ancient pentium, I've installed Slackware 8.0.0, using the 2.4.5. kernel.
I have a copy of Knoppix that I can use to boot up and change things, that way, but I'm not sure which file I would have to edit to get rid of the bad shell stuff.
If there's nothing I can do, this was a fresh install, so if I must, I can trash the install and start again, without losing anything but an hour or so of time.
does /bin/bash exist any more? if not, edit passwd to point the root user at /bin/tcsh or /bin/zsh so you can log in and re-install bash - or you could try copying /bin/bash from a live CD, overwriting the /bin/bash on your hard drive.
It seems that I can't edit passwd. I change it, use cat the the file to see if it is changed, it is, and upon reboot, its back to the way it was before
I changed the line reading
root:x:0:0::/root:/bin/bash
to read
root:x:0:0::/root:/bin/ksh
but it keeps reverting upon rebooting
This is some stupid easy fix, and I know it. Just wish I knew what it was, so I didn't have to keep wasting all your time.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.