How To Get Permission to Call File.SetAccessControl?

D

David White

My program needs to update the access control rules for a file (actually a
virtual COMM port). I have the code working on my development machine. But when
run on a different machine (or same machine with another account), it fails
with a System.UnauthorizedAccessException. I presume it is because on my dev
machine/account my account is a member of the Administrators group and on the
other machine/account it is just a normal user.

But I need to have the code work for a non-admin user (basically any user).
What do I have to request to get this level of permission and how do I get it?

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top