Advertisement
applehelpwriter

check status of root user on macOS

Nov 29th, 2017
1,215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # check status of root user on macOS
  2. # 2017 philstokes @sqwarq, sqwarq.com, applehelpwriter.com
  3.  
  4. set rootUser to " disabled."
  5. try
  6.     do shell script "dscl . -read /Users/root | grep ShadowHash"
  7.     set rootUser to " enabled."
  8. end try
  9. set msg to "Root user is" & rootUser
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement