locked
I want to grant permission to sub folders and files from parent using command. RRS feed

  • Question

  • I want to grant permission to sub folders and files from parent using command.

    I tried to this command:

    ICACLS "file or folder" /grant Everyone /t

    This commands can grant permission to sub folders and files to 'Everyone' user.

    But it is not I want.

    Parent folder can be accessed by the following users:

    IUSR

    SYSTEM

    and so on...

    I want to inherit all users who have access to the parent folder to the subfolders or files.

    In other words, ICACLS "file or folder" /grant (All Users with access to the parent folder ) /t

    Is it possible?

    Please help me~

    Thursday, March 5, 2020 8:57 AM

All replies

  • Hi JustinRappid.

    Thanks for answer.

    I read your answer. but it is not I want.

    I want to use command, not UI.

    I want to change the permissions of the subfolders and files just like the permissions of the parent folder.

    The reason I want this is because IIS is made without any authority when automatically creating log folder. So, my log viewer application is not authorized to access the log folder. Therefore, even if a new log folder is created, the command is executed periodically, and the newly created log folder tries to grant the parent's rights. This is why I am looking for the command.

    Friday, March 6, 2020 2:07 AM