8 lines
142 B
Bash
Executable file
8 lines
142 B
Bash
Executable file
#!/bin/bash
|
|
|
|
if [[ "$(id -u)" -ne 0 ]]; then
|
|
echo "[ERROR] You must run this script as root!"
|
|
exit 0
|
|
else
|
|
echo "You are root!"
|
|
fi
|