check status of root user on macOS
- # check status of root user on macOS
- # 2017 philstokes @sqwarq, sqwarq.com, applehelpwriter.com
- set rootUser to " disabled."
- do shell script "dscl . -read /Users/root | grep ShadowHash"
- set rootUser to " enabled."
- end try
- set msg to "Root user is" & rootUser