OpenWrt的默认外壳为ash
,但我想将其更改为fish
。
当我运行chsh -s /usr/bin/fish
(fish
的绝对路径)时,它返回了-ash: chsh: not found
。
我将/etc/passwd
的第一行更改为:
root:x:0:0:root:/root:/bin/ash
收件人:
root:x:0:0:root:/root:/usr/bin/fish
我无法再次登录(密码错误),并且系统日志显示:
authpriv.warn dropbear[14288]: User 'root' has invalid shell,rejected
还有其他方法可以更改默认外壳吗?
(顺便说一句,我使用的是a popular fork of OpenWrt而不是the official,但这似乎不是这个问题的原因)