We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b8aacb commit 274ba82Copy full SHA for 274ba82
base_setup_new.sh
@@ -178,7 +178,7 @@ clear
178
#root Authentication check if Password or Pubkey used in this session and make changes#
179
#
180
rootsessioncheck="$(grep root /etc/shadow | cut -c 1-6)"
181
-if [[ "$rootsessioncheck" = 'root:!' ]]; then
+if [[ "$rootsessioncheck" = 'root:!' ]] || [[ "$rootsessioncheck" = 'root:*' ]]; then
182
echo ""
183
echo " No root password set, probably you using PubkeyAuthentication in this session !? "
184
echo " This get set in sshd_config : "
0 commit comments