Add a user, login ssh fails

I created a new user but when I ssh newuser@192.168.1.1, Permission is denied.

root@OpenWrt:~# cat /etc/passwd
root:x:0:0:root:/root:/bin/ash
daemon:*:1:1:daemon:/var:/bin/false
ftp:*:55:55:ftp:/home/ftp:/bin/false
network:*:101:101:network:/var:/bin/false
nobody:*:65534:65534:nobody:/var:/bin/false
ntp:x:123:123:ntp:/var/run/ntp:/bin/false
dnsmasq:x:453:453:dnsmasq:/var/run/dnsmasq:/bin/false
logd:x:514:514:logd:/var/run/logd:/bin/false
ubus:x:81:81:ubus:/var/run/ubus:/bin/false
user1:x:999:999::/home/user1:/bin/false
user2:x:998:998::/home/user2:/bin/false
user3:x:997:997::/home/user3:/bin/false

Note the difference regard shell...
You have not set the shell for the new users, so they can't really login interactively.
/bin/ash should be there instead of /bin/false.

1 Like

yea, I kind of knew that but I wanted the login to open to their home/user* directory. I don't remember how that is done.

Shell is different thing that the home directory.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.