Skip to content
This repository has been archived by the owner on Jan 30, 2018. It is now read-only.

Hide from Login Screen #35

Closed
AnthonyHunt-UoW opened this issue Apr 29, 2014 · 6 comments
Closed

Hide from Login Screen #35

AnthonyHunt-UoW opened this issue Apr 29, 2014 · 6 comments

Comments

@AnthonyHunt-UoW
Copy link

Allow an option to hide the User from the Login Screen if the UID is less than 500. This would enable us to add a totally hidden user. If not feasible for "security" reasons maybe a custom postflight script section where we could add the custom script?

@MagerValp
Copy link
Owner

This falls under system configuration and outside of the intent of the package itself, but it could certainly be added to a custom postinstall. Merging with #18.

@AnthonyHunt-UoW
Copy link
Author

Thanks for the update. I have tried adding this to the postflight script, in a very dirty way. The package works when booted into local machine, but seems to fail when used in conjustion with AutoDMG. Any thoughts?

@MagerValp
Copy link
Owner

That's hard to say without seeing the script, but have you checked the usual suspects such as $3?

@AnthonyHunt-UoW
Copy link
Author

I actually hard coded it directly into the postflight script as the last line as:

defaults write /Library/Preferences/com.apple.loginwindow HiddenUsersList -array-add username

I think it might be the way I coded it as it must have written that to my own defaults?

@MagerValp
Copy link
Owner

Yes, you have to prepend all paths in a package script with $3, since it contains the volume you're installing to, and be sure to quote it since it can contain spaces:

defaults write "$3/Library/Preferences/com.apple.loginwindow" HiddenUsersList -array-add username

@AnthonyHunt-UoW
Copy link
Author

Yes…. The idiot mistake..thank you! Saw the path…. And totally ignored it.

Anthony.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants