Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I have created one new user according to this 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. But the OpenWrt prompts "'su' is not found" .

like image 288
Rafsan Jany Avatar asked Oct 21 '25 12:10

Rafsan Jany


2 Answers

To avoid installing extra packages, shadow-su is sufficient:

opkg install shadow-su
like image 151
Jarkko Santala Avatar answered Oct 23 '25 04:10

Jarkko Santala


In order to use su, the shadow package needs to be installed.

opkg install shadow
like image 41
oxr463 Avatar answered Oct 23 '25 02:10

oxr463



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!