Advertisement
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."
- try
- do shell script "dscl . -read /Users/root | grep ShadowHash"
- set rootUser to " enabled."
- end try
- set msg to "Root user is" & rootUser
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement