bad root shell in /etc/passwd

2012-09-26 Thread Gary Aitken
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

Re: bad root shell in /etc/passwd

2012-09-26 Thread Devin Teske
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

Re: bad root shell in /etc/passwd

2012-09-26 Thread Polytropon
On Wed, 26 Sep 2012 19:06:18 -0600, 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. A typical Linuxism. :-) As a consequence, all login attempts fail because the shell

Re: bad root shell in /etc/passwd

2012-09-26 Thread Brian Seklecki
On 9/26/2012 9:06 PM, Gary Aitken wrote: Probably not. Just boot a livecd that supports your HBA and FS, mount your Root FS, and: # vipwd -d /mnt/rootfs or mount /usr as well and: # chroot /mnt/rootfs usermod -s /usr/local/bin/bash root guidance?

Re: bad root shell in /etc/passwd

2012-09-26 Thread Gary Aitken
Thanks, all. On 09/26/12 19:18, Polytropon wrote: On Wed, 26 Sep 2012 19:06:18 -0600, 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. A typical Linuxism. :-) Never run on

Re: bad root shell in /etc/passwd

2012-09-26 Thread Polytropon
On Wed, 26 Sep 2012 22:07:26 -0600, Gary Aitken wrote: Thanks, all. On 09/26/12 19:18, Polytropon wrote: That's why you should be using the toor account and leave root unchanged. I realized that about the time I learned I had given root to a bad shell path; at which time I also