Just putting Linux Kali under the root opened a normal terminal - in color and with the current directory showing. But as soon as I entered the normal user, instead of the terminal, the simplest bash was opened from the same button, namely, only the dollar sign at the beginning of the line and without colors. How to fix it?
1 answer
most likely, for these users indicated the use of different shells.
You can find out which shell is listed, for example, with the command:
$ getent passwd пользователь in the output, the last field is the path to the shell:
пользователь:x:1000:1000:,,,:/home/пользователь:/bin/bash you can change the shell, for example, using the chsh program:
$ sudo chsh -s /bin/sh пользователь |
~/.bash_profilevia thePS1environment variable (for more information on what you can write there: calculate-linux.org/blogs/ru/193/show ). As for the coloring of other things , I think, fit habrahabr.ru/post/119436 - ноя/root/.bash_profile. If this file is missing, check if~/.bash_profileoverrides thePS1and coloring settings from/etc/profile. - ߊߚߤߘ/root/.bash_profilecontents of~/.bash_profileand/root/.bash_profilein the question. Without them, you can only make assumptions. - ߊߚߤߘ