check status of root user on macOS
applehelpwriter Nov 29th, 2017 (edited) 315 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- # 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