Da, to sam video na jos par mesta, i iskreno nemam pojma zasto se to desava, mozda je neki domain level policy umesao prste.
U svakom slucaju, imas mehanizam kojim mozes da korektujes situaciju:
Code:
DirectoryInfo dInfo = IO.Directory.CreateDirectory(<path koji treba napraviti>);
DirectorySecurity dSecurity = dInfo.GetAccessControl();
dSecurity.SetAccessRuleProtection(false, false);
ili
Code:
DirectorySecurity dSecurity = new DirectorySecurity();
dSecurity.SetAccessRuleProtection(false, false);
IO.Directory.CreateDirectory(<path koji treba napraviti>, dSecurity);
SetAccessRuleProtection je metod koji implementira ACL security inheritance flagove, prvi parametar = false znaci da directory treba da ima praznu ACL listu i da se ACL naseldjuje od parent containera.
▪ The word 'politics' is derived from the word 'poly', meaning 'many', and the word 'ticks', meaning 'blood sucking parasites' - Larry Hardiman
▪ If the good guy gets the girl, it's rated PG; if the bad guy gets the girl, it's rated R; and if everybody gets the girl, it's rated X
▪ Illegal aliens have always been a problem in the United States. Ask any Native American