On Fri, Apr 08, 2011 at 05:26:03PM +0300, Bogdan wrote: > Добрый день! > > Сделал глупость: chsh -s /usr/bin/rsh > > Теперь ни ssh root@host /bin/sh ни su --shell /bin/sh не работают - > Unknown cipher type 'ls' > > Т.е. запускается-таки shell. > При этом, в man su сказано: > > -s, --shell SHELL > The shell that will be invoked. > > The invoked shell is chosen from (highest priority first): > The shell specified with --shell. > If --preserve-environment is used, the shell specified > by the $SHELL environment variable. > The shell indicated in the /etc/passwd entry for the target > user. > /bin/sh if a shell could not be found by any above method. > > Юзерский shell на хосте есть, sudo нет. > > Debian 5 со всеми апдейтами.
Попробуйте "su -m root". Если не поможет, надо рестартировать систему в single-user mode, а можно и не поможет другое чем linux init=/bin/bash Всего лучшего, Петр -- Peter Pentchev r...@ringlet.net r...@freebsd.org pe...@packetscale.com PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 When you are not looking at it, this sentence is in Spanish.
signature.asc
Description: Digital signature