bad root shell in /etc/passwd

Devin Teske devin.teske at fisglobal.com
Thu Sep 27 01:15:42 UTC 2012


On Sep 26, 2012, at 6:06 PM, Gary Aitken wrote:

> I mistakenly changed the root shell to something which doesn't exist.
> Was trying to make it bash and used /bin/bash instead of /usr/local/bin/bash.
> As a consequence, all login attempts fail because the shell can't be found.
> 
> Unfortunatley, I shut down the session in which I modified /etc/passwd and
> I don't have a root shell running anywhere, so I can't fix it.
> 
> I'm concerned that booting single user will have the same problem.
> Or will it fall back to /bin/sh?
> 
> guidance?

Single-user mode will prompt you. The default is /bin/sh but you can change it.

You should be able to solve the problem by entering single-user mode.
-- 
Devin

_____________
The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you.


More information about the freebsd-questions mailing list