root 和非 root 用户的不同 shell

m33*_*lky 6 linux shell users ssh

当我以 root 身份 ssh 时,我的 shell 是bash,但是当它是非 root 用户时,它是sh. 我怎样才能让它们都使用bash?这实际上违背了这个问题的逻辑:为什么 root 的默认 shell 与其他普通用户帐户的默认 shell 配置不同?

Can*_*gir 5

请参阅man usermod

一个例子是sudo usermod -s /bin/bash username