Skip to content
0
/ NAS/Shell
6/1/2026
1m
AI 摘要

群晖默认 shell 从 ash 换成 zsh:安装后改 /etc/passwd 中 root 登录 shell。

Shell

设置默认终端

默认的 ash 很不好用,计划切换为 zsh,确保我们已经安装了 zsh,可以直接在群晖的套件中心安装

编辑 /etc/passwd 文件

$ vim /etc/passwd

找到其中的 root:x:0:0,我们直接修改 root 用户的默认终端,从 ash 改为 zsh

- root:x:0:0::/root:/bin/ash
+ root:x:0:0::/root:/usr/local/bin/zsh

这样即可修改完成

Released under the MIT License.