Поменял shell root'у - как залогинится?
Добрый день!
Сделал глупость: 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 со всеми апдейтами.
--
WBR, Bogdan B. Rudas
Reply to: