Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Forums > System Security

Vista - ICACLS (Make permissions on all files)

Reply
 
Old 09-27-2008   #1 (permalink)


Windows Vista™ Ultimate x64
 
 

ICACLS (Make permissions on all files)

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 System SpecsSystem Spec
Old 10-09-2008   #2 (permalink)


vista64
 
 

Re: ICACLS (Make permissions on all files)

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 System SpecsSystem Spec
Old 10-09-2008   #3 (permalink)


vista64
 
 

Re: ICACLS (Make permissions on all files)

Here is the TechNet article on icalcs, if that helps:

Icacls
My System SpecsSystem Spec
Old 10-09-2008   #4 (permalink)


Windows Vista™ Ultimate x64
 
 

Re: ICACLS (Make permissions on all files)

Quote  Quote: Originally Posted by ltwally View Post
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 System SpecsSystem Spec
Old 10-09-2008   #5 (permalink)


vista64
 
 

Re: ICACLS (Make permissions on all files)

Quote  Quote: Originally Posted by Fmjc001 View Post
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 System SpecsSystem Spec
Old 10-09-2008   #6 (permalink)


Windows Vista™ Ultimate x64
 
 

Re: ICACLS (Make permissions on all files)

Quote  Quote: Originally Posted by ltwally View Post
Quote  Quote: Originally Posted by Fmjc001 View Post
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
My System SpecsSystem Spec
Old 10-09-2008   #7 (permalink)


vista64
 
 

Re: ICACLS (Make permissions on all files)

Glad to hear that did the trick for you.
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Regarding Icacls.exe General Discussion
Vista and icacls Vista General
How to use icacls.exe to fully enable users to subfolders/files Vista security
Set rights with Icacls Vista account administration
How to make a drive not asking permissions for write and delete? Vista security


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46