Home > OS >  Batch how to specify the folder access to only users?
Batch how to specify the folder access to only users?

Time:09-22

Environment: Win10 batch
Problem: the project need by batch for the specified folder can give the user specified (such as testuser with) access, and other users (including all other users currently existing and later add a new user) access denied,
I use the cacls % % dir/e/t/p everyone: N refused all users, but add testuser with invalid user permissions,
I don't know is there other ways??

CodePudding user response:

In testuser with everyone in the group?
Used cacls command, see

CodePudding user response:

Permissions are stacked!!!! And refused to have the highest priority! Refused to everyone's built-in group, which contains all the customer, then along with the administrator, all users will be rejected!

Only allow a person to visit, let the ACL list is only for the one user permission is ok, don't be refused entry!!!

For the convenience of management, it is better to add the Administrators group full control permissions!
  • Related