Skip to content

Commit 1622273

Browse files
committed
ncp.sh: Lock root password instead of setting nologin shell for root
Signed-off-by: Tobias Knöppler <6317548+theCalcaholic@users.noreply.github.com>
1 parent 5f3dd66 commit 1622273

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ncp.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ EOF
8282
echo -e "$WEBPASSWD\n$WEBPASSWD" | passwd "$WEBADMIN"
8383
is_docker || is_lxc || {
8484
chsh -s /usr/sbin/nologin "$WEBADMIN"
85-
chsh -s /usr/sbin/nologin root
85+
passwd -l root
8686
}
8787

8888
## NCP LAUNCHER

0 commit comments

Comments
 (0)