tony_yum
07-04-2007, 05:57 AM
Hi All,
I am having a bit of screw up. Please help. I did
usermod -s bash
with root. and exited the root shell. I can no longer su or even login normally into root.
I get this message "Cannot execute bash: No such file or directory". I know I should have done usermod -s /bin/bash instead. But now I can't change the /etc/passwd file to set the shell anymore since I can't get to root. su -s /bin/bash doesn't work, because my user is under privileged and $SHELL and -s get's ignored.
Is there no way for me to get back into root? Please help? I am thinking of logging out of nautilus and log back in as root. Just worried that I won't be able to log back in and I'm in trouble.
Thanx
Tony
I am having a bit of screw up. Please help. I did
usermod -s bash
with root. and exited the root shell. I can no longer su or even login normally into root.
I get this message "Cannot execute bash: No such file or directory". I know I should have done usermod -s /bin/bash instead. But now I can't change the /etc/passwd file to set the shell anymore since I can't get to root. su -s /bin/bash doesn't work, because my user is under privileged and $SHELL and -s get's ignored.
Is there no way for me to get back into root? Please help? I am thinking of logging out of nautilus and log back in as root. Just worried that I won't be able to log back in and I'm in trouble.
Thanx
Tony