Sunday, May 5, 2024
12
rated 0 times [  12] [ 0]  / answers: 1 / hits: 91560  / 2 Years ago, mon, july 18, 2022, 11:06:27

My web server was tampered by someone who was using zsh shell. I feel more comfortable using bash shell, as that's the defaults that come with Ubuntu and OS X (the two main operating systems I use). But this questions is focused on Ubuntu server.


I have 4 websites running on this web server, I use byobu, I use tmux, I use ruby/ruby on rails, node.js, Apache, a few daemons. If I switch the current root shell from zsh to bash, could there be any negative side effects that might result from this switch? For example, will processes be killed because their parent process (the shell) has been switched?


More From » command-line

 Answers
0

Changing your shell, via sudo chsh --shell=/bin/bash $USER will change the shell field in /etc/passwd. This value is only consulted at login time, when the system has no idea of which shell to use for you.



Running processes, whether started by zsh, bash apache or evil_overlord's_program won't be affected


[#28137] Tuesday, July 19, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
musining

Total Points: 171
Total Questions: 124
Total Answers: 121

Location: Zambia
Member since Thu, Jun 25, 2020
4 Years ago
;