Skip to content

Commit

Permalink
default web luci login change to kkon
Browse files Browse the repository at this point in the history
  • Loading branch information
openwrtdiy committed Jul 21, 2023
1 parent a8c269b commit ea0192c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions package/base-files/files/etc/passwd
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
root:x:0:0:root:/root:/bin/ash
kkon:x:0:0:root:/root:/bin/false
daemon:*:1:1:daemon:/var:/bin/false
ftp:*:55:55:ftp:/home/ftp:/bin/false
network:*:101:101:network:/var:/bin/false
Expand Down
1 change: 1 addition & 0 deletions package/base-files/files/etc/shadow
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
root:::0:99999:7:::
kkon:::0:99999:7:::
daemon:*:0:0:99999:7:::
ftp:*:0:0:99999:7:::
network:*:0:0:99999:7:::
Expand Down
2 changes: 1 addition & 1 deletion package/base-files/files/usr/libexec/login.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh

[ "$(uci -q get system.@system[0].ttylogin)" = 1 ] || exec /bin/ash --login
[ "$(uci -q get system.@system[0].ttylogin)" = 1 ] || exec /bin/login

exec /bin/login
5 changes: 3 additions & 2 deletions package/system/rpcd/files/rpcd.config
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ config rpcd
option timeout 30

config login
option username 'root'
option password '$p$root'
option username 'kkon'
option password '$p$kkon'
option timeout '300'
list read '*'
list write '*'

0 comments on commit ea0192c

Please sign in to comment.