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
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
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
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?
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
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
(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
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
#
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
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
10 matches
Mail list logo