11 lines
176 B
Bash
11 lines
176 B
Bash
#!/bin/bash
|
|
|
|
root_password=$(getent shadow root | cut -d: -f2)
|
|
|
|
if [[ "$root_password" == "*" || "$root_password" == "!" || -z "$root_password" ]]; then
|
|
exit 1
|
|
fi
|
|
|
|
exit 0
|
|
|