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

Re: bad root shell

2003-12-22 Thread Mark McConnell
(as defined by getusershell(3)) and the caller's real uid is non- zero, su will fail. But otherwise, yours would be the right answer, I believe. Mark -- On 20 Dec 2003 at 23:32, Scott I. Remick wrote: {Re: bad root shell...}: On Sat, 20 Dec 2003 09:44:17 -0800, Mark McConnell

bad root shell

2003-12-20 Thread Mark McConnell
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: 1. mount boot drive to /mnt 2. provide myself with a working mkdb and vi (for chpass): # mkdir /usr/sbin /usr/bin #

Re: bad root shell

2003-12-20 Thread Steve Bertrand
On Sat, 2003-12-20 at 12:44, 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: 1. mount boot drive to /mnt 2. provide myself with a

Re: bad root shell

2003-12-20 Thread Scott I. Remick
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