Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
I accidentaly changed the shell for root to "my name"
now whenever i am trying to log on as root it log me off and says cannot execute "my name" however i can log on as subuser
how to log on as root if i know the password but it just allways log me off
please help
What 'shell' did you change? I know very little about this, but I recently forgot my root pw and had to wipe my system. I know there are other ways around it, someone else with more knowledge than me will chime in soon.
What 'shell' did you change? I know very little about this, but I recently forgot my root pw and had to wipe my system. I know there are other ways around it, someone else with more knowledge than me will chime in soon.
He must have changed his login shell. The default for the GNU/Linux system is bash.
If you use Fedora Core, you can invoke system-config-users, type in your root password (which should be doable since it does not invoke the shell), and change the shell of root back to /bin/bash. I haven't tried it myself, but it *should* work.
You should also change the subject description to something more descriptive, before a moderator freezes this thread and prevents you from getting more help.
yes i did changed login shell iam running slackware and i guess ill try first what daihard sugested thanx for now **it did not work
su doesnt work neither, single mode doesnt work
how do i change the login shell** chsh for root wont work from user mode damnit
By the way, once you've booted the PC with the rescue CD, you'd do something like the following. I'm assuming the partition containing the /etc directory is on /dev/hda1 and that it is ext3:
Code:
mkdir -p /mnt/harddisk
mount -t ext3 /dev/hda1 /mnt/harddisk
vi /mnt/harddisk/etc/passwd
You can use any text editor, it doesn't have to be vi (pico, joe, etc.). The line for root should be something 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.