notes/scripts/permissions.sh
2022-06-09 12:59:03 -07:00

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