How to set the environment for a linux user?

Created user home directory put the public key in the ssh allowed authorization key.
I go via ssh without a password and the invitation looks like this 8aa7bfe09be54e3ea2d316a027747e59.png
When you run su command I have to enter the password for Ruth, that would enter into the privileged mode.
Where to register that would when you connect via ssh I was in a normal environment /bin/sh?
And is it possible to do that would be when you enter the command su without a password I got in privileged mode a user?
July 2nd 19 at 18:14
3 answers
July 2nd 19 at 18:16
chsh -s /bin/bash
and this is to register all users? - Isaiah_Kub commented on July 2nd 19 at 18:19
July 2nd 19 at 18:18
1.Wash shell and as /bin/sh (not bash). To check $ echo $SHELL .If you need to change - $ echo "export SHELL=/bin/sh" >> ~/.bashrc .
2.It is better to use sudo. # echo "$USERNAME ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers .
July 2nd 19 at 18:20
1. Nothing like an invitation? This is a standard invitation /bin/sh - Yes, this is it. What do You expect to see? Don't like to reconfigure, paint and in General to shovel so that no one will know.
2. It is not necessary to do so. Going to root the phone, You disconnect nafig almost all (well not all but the majority) protective mechanisms and kill the system in one command. On the test computer, anything in it terrible of course not, but this forms a bad habit and once You do that on a running server...

To do so through sudo, but I still highly recommend the password prompt, not disable.
thanks for the answer, do not prompt where to register to all users by default, not /bin/sh and /bin/bash ? - Isaiah_Kub commented on July 2nd 19 at 18:23
: I have /bin/sh is just a symlink to /bin/bash) Calculate Linux - Isaiah_Kub commented on July 2nd 19 at 18:26
man chsh, vipw, man, man 5 passwd
chsh — state team for change shell, correctly use vipw to edit /etc/passwd, /etc/passwd shell is prescribed. - Esta_Upton commented on July 2nd 19 at 18:29

Find more questions by tags TerminalCentOS* nix-like systemsbashLinux