Skip to content

Commit 274ba82

Browse files
authored
Update base_setup_new.sh
1 parent 4b8aacb commit 274ba82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base_setup_new.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ clear
178178
#root Authentication check if Password or Pubkey used in this session and make changes#
179179
#
180180
rootsessioncheck="$(grep root /etc/shadow | cut -c 1-6)"
181-
if [[ "$rootsessioncheck" = 'root:!' ]]; then
181+
if [[ "$rootsessioncheck" = 'root:!' ]] || [[ "$rootsessioncheck" = 'root:*' ]]; then
182182
echo ""
183183
echo " No root password set, probably you using PubkeyAuthentication in this session !? "
184184
echo " This get set in sshd_config : "

0 commit comments

Comments
 (0)