check status of root user on macOS

applehelpwriter Nov 29th, 2017 (edited) 390 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,,
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand