Posted on 05-13-2022 07:27 AM
Hi,
Does anyone know a command that will log the folder to the point where an end user including an admin can't open it. But it still lets jamf make the changes in the background?
Thank you
Posted on 05-13-2022 08:40 AM
Almost everything performed by the Jamf binary is done as the root user. You could write a script that changes ownership of a folder (and its contents) to owned by root, but not the admin group or everyone group. So only the root user (system) could access it. Take a look at the Downloads folder in /Library/Application Support/JAMF/Downloads as an example.
chown -R root:admin [directory/file path]
chmod -R 700 [directory/file path]
Posted on 05-16-2022 07:11 AM
Unfortunately giving admin access is kinda giving away the keys to the castle. Any terminal commands you use to change permissions to stop a user from accessing a folder, the user can use to undo the changes. Admin access comes with sudo (or root) level access.
I suppose why you are wanting to do this would help narrow down possible options on what should be done.