Linux usermod change EDITOR


3 Ways to Change a Users Default Shell in Linux

# 1
cat /etc/shells
usermod --shell /bin/bash ivan
# 2
chsh --shell /bin/bash ivan
# 3
vi /etc/passwd

# check
grep ivan /etc/passwd

 

update-alternatives --config editor