diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9bea433 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ + +.DS_Store diff --git a/AutoCasperNBI.xcodeproj/project.xcworkspace/xcuserdata/btoms.xcuserdatad/UserInterfaceState.xcuserstate b/AutoCasperNBI.xcodeproj/project.xcworkspace/xcuserdata/btoms.xcuserdatad/UserInterfaceState.xcuserstate index 683c320..4e12c6a 100755 Binary files a/AutoCasperNBI.xcodeproj/project.xcworkspace/xcuserdata/btoms.xcuserdatad/UserInterfaceState.xcuserstate and b/AutoCasperNBI.xcodeproj/project.xcworkspace/xcuserdata/btoms.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/AutoCasperNBI/AutoCasperNBIAppDelegate.applescript b/AutoCasperNBI/AutoCasperNBIAppDelegate.applescript index 9d10536..6b23605 100755 --- a/AutoCasperNBI/AutoCasperNBIAppDelegate.applescript +++ b/AutoCasperNBI/AutoCasperNBIAppDelegate.applescript @@ -3588,10 +3588,15 @@ script AutoCasperNBIAppDelegate --Log Action set logMe to "Trying to set Root User auto login" logToFile_(me) - -- Write JSS 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"