-
-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
armbian.sh: Make sure, passwordless login is disabled for root
Signed-off-by: Tobias Knöppler <[email protected]>
- Loading branch information
1 parent
f1b0ae4
commit 636d0da
Showing
5 changed files
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,6 +43,7 @@ systemctl disable ssh | |
rm -f /etc/systemd/system/[email protected]/override.conf | ||
rm -f /etc/systemd/system/[email protected]/override.conf | ||
rm -f /root/.not_logged_in_yet | ||
sed -i 's|^root::|root:x:|' /etc/passwd | ||
|
||
basename "$IMG" | tee /usr/local/etc/ncp-baseimage | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env bash | ||
|
||
if getent passwd "$LOGNAME" | grep -e 'root' | grep -e '/usr/sbin/nologin' | ||
then | ||
chsh -s /bin/bash root | ||
passwd -l root | ||
fi |