2
2
By default, C:\Program Files, C:\Windows are UAC protected. How to make additional folders to be UAC protected?
2
2
By default, C:\Program Files, C:\Windows are UAC protected. How to make additional folders to be UAC protected?
3
Change the folder permissions.
To keep non-Admin users from accessing the folder:
how? which user should enable / disable what permisions? – linquize – 2012-06-13T08:20:17.110
Deny Full Control will deny all access, including read access, and typically will block administrators as well as non-administrators; e.g., if you Deny Full Control to Users, you'll block out everyone, because Users includes Authenticated Users and deny entries take precedence. – Harry Johnston – 2012-06-15T05:35:53.910
@HarryJohnston: Deny Full Control only applies to the user in question. Actually I suggested blocking non-Admin users. He can select them at his own discretion. – WikiWitz – 2012-06-15T05:37:27.543
What, you mean give each user you don't want to have access an individual deny entry? That would work, I suppose, on non-domain-joined machines, provided you remembered to update the permissions every time you added a new user. But blacklists aren't good practice except in special cases. Instead, you should grant access only to the specific users you want to have it, which in this case would be the Administrators group. – Harry Johnston – 2012-06-15T05:42:56.350
Also, deny entries won't work at all in this case, because the user wants to be able to gain access via the UAC approval dialog. Since the elevated token contains all the security primitives contained in the non-elevated token, any deny entry that applies to the non-elevated user will also apply to the elevated user. – Harry Johnston – 2012-06-15T05:47:47.327
At least not as you say, "..typically will block administrators..." We would appreciate it if you will offer a workaround in Windows 7 to do this "Only allow Admins" settings. – WikiWitz – 2012-06-15T05:48:19.993
I tried this in my machine before posting the answer. The Admin will have no problems accessing the file. – WikiWitz – 2012-06-15T05:50:59.663
What exactly do you mean by "UAC protected"? What is the behaviour you're trying to replicate? – Harry Johnston – 2012-06-15T02:59:03.417
When you need to make changes inside that folder, such as overwriting a file, creating a folder, deleting a file, etc..., UAC prompt will show up and the user confirm the action – linquize – 2012-06-15T04:39:56.990
1This will happen for any folder that doesn't grant write permissions to the user in question or to all users. Remove write access for groups like "Users", "Everyone", or "INTERACTIVE". Secure folders typically only grant write permission to the Administrators group, CREATOR OWNER, and SYSTEM. – Harry Johnston – 2012-06-15T05:36:02.067