Skip to content
This repository has been archived by the owner on Nov 10, 2019. It is now read-only.

Commit

Permalink
autoLoginUID
Browse files Browse the repository at this point in the history
  • Loading branch information
macmule committed Sep 26, 2017
1 parent 9d67ad1 commit 64692c1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Binary file not shown.
9 changes: 7 additions & 2 deletions AutoImagrNBI/AutoImagrNBIAppDelegate.applescript
Original file line number Diff line number Diff line change
Expand Up @@ -3617,10 +3617,15 @@ script AutoImagrNBIAppDelegate
--Log Action
set logMe to "Trying to set Root User auto login"
logToFile_(me)
-- Write Imagr URL to plist,
-- Write autoLoginUID to plist,
do shell script "/usr/bin/defaults write " & quoted form of netBootDmgMountPath & "/Library/Preferences/com.apple.loginwindow.plist autoLoginUID -string 0" user name adminUserName password adminUsersPassword with administrator privileges
--Log Action
set logMe to "Successfully set autoLoginUID"
logToFile_(me)
-- Write autoLoginUser to plist,
do shell script "/usr/bin/defaults write " & quoted form of netBootDmgMountPath & "/Library/Preferences/com.apple.loginwindow.plist autoLoginUser -string root" user name adminUserName password adminUsersPassword with administrator privileges
--Log Action
set logMe to "Successfully set Root User auto login"
set logMe to "Successfully set autoLoginUser"
logToFile_(me)
--Log Action
set logMe to "Trying to set ownership to root:wheel on " & quoted form of netBootDmgMountPath & "/Library/Preferences/com.apple.loginwindow.plist"
Expand Down

0 comments on commit 64692c1

Please sign in to comment.