Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't get into root anymore!

Status
Not open for further replies.

Squadcar7

IS-IT--Management
Mar 27, 2002
25
US
Hi everyone. After finally deciding that Mandrake isn't gonna teach me anything, I managed to get Debian installed, and functioning. Got the upgrade to XFree86 4.2.0 and then began installing packages (apt-get is great!) Anyway, while I was in root for a bit, I managed to put myself into the sudoers, but forgot to put in the NOPSSWD part, and so it prompts me for a password. Well, while I was in root, I did a chsh and changed to default shell to zsh. Now, the problem is, when I try to login as root, it tells me "Cannot find zsh: No such file or directory" and won't let me login. I can login to my own account that also has zsh as the default shell. Now, I can't change anything, because I don't know remember even setting a password for sudo. I guess my question is, how in the hell do I change this back? Is there a default sudo password? It's not my password, or the root password. Any help at all would be great, because right now, I can't install anything, or remove anything, or edit anything, and I have a crapload of devices to install....
 
Quick update: After fooling around with it some more, I typed sudo again, and tried different passwords. This time it took my password. So I immediately run to the /etc/sudoers files and add the NOPASSWD line to it. Unfortunately, I forgot to put in the A in NOPASSWD, so I get a parse error whenever I run sudo. Now I'm stuck again. Any help? Please?!?!
 
If you still know your root password then do
Code:
> su -s /bin/bash
Or
Code:
> su -s /bin/csh
whichever shell you are more comfortable with. The '-s' flag allows you to specify a shell to use.

jaa
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top