Appearance
本文介绍了如何在群晖系统中将默认终端从 ash 切换为 zsh,包括安装 zsh、编辑 /etc/passwd 文件并修改 root 用户的默认终端为 zsh。
ash
zsh
/etc/passwd
默认的 ash 很不好用,计划切换为 zsh,确保我们已经安装了 zsh,可以直接在群晖的套件中心安装
编辑 /etc/passwd 文件
$ vim /etc/passwd
找到其中的 root:x:0:0,我们直接修改 root 用户的默认终端,从 ash 改为 zsh
root:x:0:0
- root:x:0:0::/root:/bin/ash + root:x:0:0::/root:/usr/local/bin/zsh
这样即可修改完成