Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
I accidentally set root shell to /bin/false. Hence, when I logged out, I can't access back to the Root Super User. I can still work with the server but I can't access to root.
Try hitting escape at the grub screen, and edit the suse starup by putting single at the end of the kernel line. Boot, then edit /etc/passwd. I assume this works, unless the partition is mounted readonly.
If it is, boot a live CD, then mount the sus partition and make the change to passwd
I don't think "single" would work. That would use the system directories and root's shell would still be /bin/false.
You could try the "rescue" boot option or "init=/bin/bash". The latter will drop you into the shell as root. For both of these, you will need to mount the root directory to access the regular /etc/passwd file.
You don't need to modify the /etc/fstab, just modify the /etc/passwd file. If you have a user with sudo privileges, then you can fix it with "sudo vi /etc/passwd" (or whatever editor you like).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.