// JP opened flex table

Click to See Complete Forum and Search --> : Directory Access denied


ScapinVS
April 23rd, 2007, 11:21 AM
Hi there,

I have a little problem... I use the NetGroupAddUser() to add a user to an existing group. After thet, i give the group access to a directory using the .NET C# class FileSystemAccessRule.

When I leftclick the directory in Windows Explorer I get a message "Access denied". (The user logged in is the one I added to the group and its also the domain admin).

Well, when I rightclick the fodler and check the security settings, everything seems to be in place and also the user is member of the group.

When I reboot the machine, everything is fine.

Does anyone know how to solve this? Its seems, the User/Group relationship is not updated after NetGroupUserAdd() before a reboot. Is there anything I can do to trigger an update?

Thanks,
Scapin

TheCPUWizard
April 23rd, 2007, 12:01 PM
Many/ost security settings are cached at the time of login. Whenever you make ANY change, it is always a good idea to have the user log out and log back in. A reboot should not be necessary.

ScapinVS
April 24th, 2007, 05:33 AM
Many/ost security settings are cached at the time of login. Whenever you make ANY change, it is always a good idea to have the user log out and log back in. A reboot should not be necessary.

Well, Yes. That works. But unfortunatelt for our product we have a requirement called out-of-the-box-experience which should allow to run the program without logging off or rebooting. Isnt there any API call which triggers the caching?

//JP added flex table