/build/static/layout/Breadcrumb_cap_w.png

iCacls command not working.

Hi All,

I am facing issue with iCacls command. I used below command:

icacls C:\abc /grant :r Users:(R,W)

It executes successfully but folder 'abc' doesn't get permission apply. 

Can anyone help please and let me know what wrong I am doing here ?

Regards, D

0 Comments   [ + ] Show comments

Answers (2)

Answer Summary:
Posted by: Pressanykey 7 years ago
Red Belt
1
Hi,
who (or which account) has the ownership before attempting to set the permissions. I have found that folders whose owner is TrustedInstaller fail to apply permissions. I've had to remove the ownership from TrustedInstaller, set an other account as the owner, apply my needed permissions and then reset the owner to TrsutedInstaller... perhaps you have a similar problem.

Cheers
Phil

Comments:
  • Thanks for your reply Phil.

    I manually created the folder and try executing the command with the same account (Admin) from cmd.
    Could you please tell how do we check TrustedInstaller ? - The_D 7 years ago
    • Hi,
      you can check ownership using the "normal" properties dialogue... Just make sure that the sharing wizard is not active. - Pressanykey 7 years ago
Posted by: tskrich 7 years ago
Senior Yellow Belt
0

Top Answer

Try this:

    icacls c:\ABC /inheritance:r /grant:r <DOMAIN>\<USER>:(OI)(CI)F /T


 

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ