Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
huh...I don't know if you've seen this one before.
I just installed Slackware 10.0 a week ago and I am still battling basic stuff.
I accidentally (by logging in as 'su' and then forgetting about it) changed root's login shell to ksh. Now I can't login as root anymore!!!
Actualy I can, but I get immediatelly kicked out. As soon as I login it gives me:
Try going in with 'su' (not su - so you don't get root's environment) and editing /etc/passwd to provide the full correct path to the shell. If that doesn't work, you'll need to boot into signle user mode to do the same thing.
HUh....The first thing doesn't work - I get the same message. I booted into the SU mode and tried to edit the file but it wouldn't let me - I think because I was logged in as a regular user (that's the onlly way I can log in).
Not using Slackware, I can't offer advice on it. But, with Fedora 2, CD1 includes a rescue mode. If you login to that, you can edit files on your system without booting it. Also, I'm not sure if it would work, but if you can get your hand on a CD based distro like Knoppix you could probably edit from there.
Well I just booted from my boot floppy. But...I am still not allowed to edit /etc/passwd. Am I doing it right?
Reboot with the floppy, mount with read-write option, login as a user...
Fedora's rescue CD automatically assigns you root permissions in rescue mode.
If Slackware has this same function on one of it's CDs, then you should be able to type something like 'linux rescue' at the prompt (if it has one) and this will give you root permissions at a bash (or sh) shell.
(I am a newbie to Linux too, just discovered rescue mode when I had to edit my xorg.conf file, then i realised I could go to runlevel 3 from Grub)
You ought to be able to boot with your slack CD or any of the millions of Live CD's available and mount up the / partition (or wherever /etc is located) to a /mnt directory and then edit /etc/passwd to your liking.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.