如何在终端或任何其他方式中使用 'su -l' 在 OpenWrt 中切换用户?

How to switch between users in OpenWrt using 'su -l' in terminal or any other way?

我按照这个link“https://wiki.openwrt.org/doc/howto/secure.access" and followed the Method 2. I want to switch from root to new user in OpenWrt as I did in Ubuntu in Ubuntu using 'su -l dhaka(username)' to switch from rafsan to dhaka user新建了一个用户。但是OpenWrt提示“'su'没有找到”。

为了使用su,需要安装shadow包。

opkg install shadow

为了避免安装额外的包,shadow-su 就足够了:

opkg install shadow-su