daily pastebin goal
67%
SHARE
TWEET

check status of root user on macOS

applehelpwriter Nov 29th, 2017 (edited) 203 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
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
 
Top