Answer the question
In order to leave comments, you need to log in
Ubuntu default shell?
I want to enter superuser mode, but it gives the following:
[email protected]:~$ sudo -s
sudo: tilix: команда не найдена
[email protected]:~$ echo $SHELL
tilix
sudo apt purge tilix
, I try to delete it again and it saysPackage 'tilix' is not installed and therefore cannot be removed
[email protected]:~$ cat /etc/shells
# /etc/shells: valid login shells
/bin/sh
/bin/bash
/bin/rbash
/bin/dash
/usr/bin/fish
Answer the question
In order to leave comments, you need to log in
updated the root password through sudo passwd root
and everything returned to its place, now I can enter the superuser mode and the remote tilix does not hang as the default shell
Are you running chsh as a non-root? Here it shows the shell for the user kirill.
Change the handles in /etc/passwd. You need root for this, of course. Switch to root via su, then if the specified shell is missing, sh should start. Then you can execute / bin / bash - to make it more convenient to work, and then change the default shell, even with chsh, even with your hands.
/etc/shells is a list of shells allowed on this system, not necessarily existing ones. Shell - at least the root, at least the horse - is set in /etc/passwd, in the last field. To edit it, you need root rights.
% su -l
# vi /etc/passwd
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question