Re: bad root shell
From: Scott I. Remick (scott_at_sremick.net)
Date: 12/21/03
- Previous message: Trey Sizemore: "Initial install (packages vs. ports)"
- In reply to: Mark McConnell: "bad root shell"
- Next in thread: Mark McConnell: "Re: bad root shell"
- Reply: Mark McConnell: "Re: bad root shell"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: freebsd-questions@freebsd.org Date: Sat, 20 Dec 2003 23:32:21 -0500
On Sat, 20 Dec 2003 09:44:17 -0800, Mark McConnell wrote:
> An error in a pw* script inserted a non-existent shell into the password
> database, effectively locking out root.
>
> I used a fixit disk to correct the problem, using this procedure:
Unless I'm missing something, seems like the long way to do this. Last
time I did this to myself, I did the following:
1) Log in as a user who can su to root.
2) Use su -m to su to root without changing your current shell
3) As root, use chpass -s to change your shell to a working one.
Of course, this won't work if your only account is "root" or you don't
have anyone else in the wheel group, so maybe it doesn't apply to you.
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
- Previous message: Trey Sizemore: "Initial install (packages vs. ports)"
- In reply to: Mark McConnell: "bad root shell"
- Next in thread: Mark McConnell: "Re: bad root shell"
- Reply: Mark McConnell: "Re: bad root shell"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|