check status of root user on macOS
applehelpwriter Nov 29th, 2017 (edited) 231 Never
- # 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
RAW Paste Data