ICACLS (Make permissions on all files)

PainlessTorture

Official Best Member
Vista Pro
Hey, Ive been trying to figure out a way to use the ICACLS command to give permissions to a test user and have them apply to all files in the directory.

I know I can use a wild card but that only effects files in the folder at the time the command is executed.

I have also tried using /inheritance:e as one of the arguments but it still doesnt seem to work.

Can someone give me an example of how I would give the user 'Admin' full control of the directory 'c:\perm test' without a wildcard. (Including all files in that dir)

Thanks,
Fmjc001 :)
 

My Computer

System One

  • Manufacturer/Model
    Hewlett Packard
    CPU
    3.40Ghz / 2.20Gz Duo Core
    Memory
    2GB / 3GB
    Hard Drives
    160 GB / 160 GB
It's been a good while since I used icalcs... but I do know that permissions from a parent object generally filter to their children.

Can you not set the permissions for the parent folder?

Just change the target from a file to the folder itself.
 

My Computer

It's been a good while since I used icalcs... but I do know that permissions from a parent object generally filter to their children.

Can you not set the permissions for the parent folder?

I havent tried to set on parent. ive been doing \*

Should i just leave it at "icacls C:\test /c /grant me:f" to get full access to all files within the "test" dir?
 

My Computer

System One

  • Manufacturer/Model
    Hewlett Packard
    CPU
    3.40Ghz / 2.20Gz Duo Core
    Memory
    2GB / 3GB
    Hard Drives
    160 GB / 160 GB
Should i just leave it at "icacls C:\test /c /grant me:f" to get full access to all files within the "test" dir?

Yes; to the best of my memory, the command syntax is identical between files and directories.

Under normal circumstances, child objects (files) will inherit the permissions of their parents (folders).
 

My Computer

Should i just leave it at "icacls C:\test /c /grant me:f" to get full access to all files within the "test" dir?

Yes; to the best of my memory, the command syntax is identical between files and directories.

Under normal circumstances, child objects (files) will inherit the permissions of their parents (folders).

Thanks ltwally, Ill rep you :geek:
 

My Computer

System One

  • Manufacturer/Model
    Hewlett Packard
    CPU
    3.40Ghz / 2.20Gz Duo Core
    Memory
    2GB / 3GB
    Hard Drives
    160 GB / 160 GB
Back
Top