Hi, I installed entware and shadow utils, I run “useradd test” to add a new user for usage of ftp service, but got ‘seradd: cannot open /opt/etc/passwd’. I want to know how can I add a new user, please help, Thank you.
CoreELEC:~ # ls -al /opt/etc/passwd
lrwxrwxrwx 1 root root 11 Feb 8 09:01 /opt/etc/passwd -> /etc/passwd
Which means entware is using passwd file from CoreELEC where those files are readonly.
But you can try to remove symbolic links and copy files from CE. Maybe it will work (do it on your own risk).
rm /opt/etc/passwd /opt/etc/shadow /opt/etc/group
cp /etc/passwd /etc/shadow /etc/group /opt/etc
1 Like
It works.
User added by useradd
from entware can be identified by entware package, but can not identified by os package like id
. Though it’s not perfect, it works. Thank you!
1 Like
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.