Abdul Bari
Abdul Bari

Reputation: 1

How to set full control permission for file and folder on Windows with cmd?

I'm trying this below. Than read, write & execute permission can stop, but file rename I can't stop with this command.

CACLS files /e /p {USERNAME}:{PERMISSION}

Where,

For example grant Rocky Full (F) control with following command (type at Windows command prompt):

C:> CACLS files /e /p rocky:f

Read complete help by typing the following command:

C:> cacls /?

Upvotes: 0

Views: 12339

Answers (1)

Ali
Ali

Reputation: 1210

below is a working sample that i use

ICACLS *.* /setowner "authenticated users" /T /C

now use the command ICALS /grant or /deny the permission then username

Upvotes: 0

Related Questions