DS bash – check that script is being executed by root ~~ August 24, 2019 12345if [ $EUID -ne 0 ] then /bin/echo $'\nThis script must be run as the root user!\n' exit fi Related Posts:Apple Mail - control mail check intervalBash Substring Matching within Stringbash mkdir -p for recursive subdirectory creation.DS_Store - BASH shell - Linux/OSX = Find & Remove Filesbash combine pdf or other image files into pdfenable / disable root user - OSXbash - awk with colored outputbash NULL DEVICE - redirecting output & errorsThunderbird - control mail check interval