• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 817
  • Last Modified:

Set rights using command line / icacls.exe

Hey

icacls.exe c:\test1\$i /grant domain/usera:F

It only set the rights "on this folder"

How do I set "On all folders, subfolders and files"?

Mike
0
mikeydk
Asked:
mikeydk
2 Solutions
 
Vinchenzo-the-SecondCommented:
The bellow folders should inherit the permission if this is enabled, by the sounds of it inheritence is disabled.  To enable it you can use the /inheritanced:e
0
 
Ahmed786Commented:
0
 
sirbountyCommented:
Fairly certain all you need is a /T at the end to process all files/folders beneath.

icacls.exe c:\test1\$i /grant domain/usera:F /T
0
 
deroodeCommented:
Better: use the icacls Object Inherit and Container Inheit tags.

icacls c:\test1\$i /grant domain/usera:(OI)(CI)(F)
0

Featured Post

Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now