daily pastebin goal
9%
SHARE
TWEET

check status of root user on macOS

applehelpwriter Nov 29th, 2017 (edited) 79 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
RAW Paste Data
Top