"Read" file permissions don't have "Synchronize" flag included - Advanced Installer Community
lel
Posts: 1
Joined: Wed Aug 12, 2020 7:36 am

"Read" file permissions don't have "Synchronize" flag included

Hi,

Last time I added a new file to my AI project. I granted this file "Read" permissions for "Everyone" and "Full control" for "Administrators" via "Properties" -> "Permissions" -> "New...", saved it, and built the installer. Of course, I ran a test, installed my product, and checked the permissions via "icacls" too and I got this as a result:

Code: Select all

> icacls .\addedfile
.\addedfile Everyone:(OI)(CI)(Rc,RD,REA,RA)
                    BUILTIN\Administrators:(OI)(CI)(F)
                    NT AUTHORITY\SYSTEM:(OI)(CI)(F)

Successfully processed 1 files; Failed processing 0 files
Of course, as it can be seen, "addedfile" has all "read" permissions, but for some reason, it lacks "Synchronize" flag. This makes this file unreadable by some processes, which are not privileged. When I manually grant "Read" permissions using this command:

Code: Select all

> icacls addedfile /grant *S-1-1-0:R 
the file gets also "Synchronize" rights and the process mentioned before is able to read this file.
Is this a bug in "Permissions" tab, that generic "Read" permission doesn't include also "Synchronize" flag?
When adjusting permissions using Windows "Properties" -> "Security" -> "Advanced" view and then setting "Read", then "Synchronize" flag is also present, so I guess this is some omission on AI side.
The version of AI I use: 16.6.1.
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: "Read" file permissions don't have "Synchronize" flag included

Hello and welcome to our forums,

To be fully honest with you, I am not quite familiar with the "Synchronize" flag from the NTFS file system.

I have done, however, some reasearch in this matter and I found out that this permission usually applies to multi-threaded programs.

I have also tried to test this scenario, but unfortunately it looks like I do not have any item to which the "Synchronize" flag can be added (I have tried testing this with multiple executable files, the result was always the same).

With that being said, in order for me to further investigate this, could you please forward me, by e-mail at support at advancedinstaller dot com, a file to which that flag can be added? I'd like to confirm that I can reproduce this on our end so I can then forward this to our development team, as currently I am not able to do so:
permissions.png
permissions.png (63.52 KiB) Viewed 2544 times
Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”