PDA

View Full Version : Setting file permissions using SID



jmcewan
05-04-2010, 08:18 AM
The Grant File Access SB function says that it supports the use of SIDs to set file permissions. When I try to give everyone permissions using S-1-1-0, the ERRORCODE is non-zero and the permissions are not set. If I use the name Everyone, everything works fine. I know ICACLS needs a * before the SID, does SetupBuilder require anything like that, or is there something else I am doing wrong? I am leaving the Domain empty and just writing "S-1-1-0" in the User field. Also, will this work on XP, because it didnt look like CACLS supports the use of SIDs?

Thank you

linder
05-04-2010, 08:23 AM
Hello,

Please see:
http://www.lindersoft.com/forums/showthread.php?p=25577&highlight=S-1-1-0#post25577

Friedrich

jmcewan
05-04-2010, 08:34 AM
Great. That works nicely, thank you. Sorry I didnt see that in my initial search of the forums.

Thanks again

linder
05-04-2010, 08:36 AM
Perfect :) Thanks for the good news!

Friedrich