Results 1 to 2 of 2
2005-09-20, 16:42 #1
- Join Date
- Mar 2003
- Elkins Park, Pennsylvania, USA
- Thanked 0 Times in 0 Posts
Setting File Permissions on Network Share (VB)
Hi, all. I hope this is the right place for this question.
I have several dozen Reference Manager databases stored on a network share. I recently discovered that the permissions for many of these files aren't correct. Assuming I have the correct administrative privileges (or at least that the login I will be using has them), is there an easy way to set the permissions of, say the "Everyone" group associated with an object, and (if necessary) to remove any inherited properties? (I'm sorry if I sound like a techno-peasant, but my forte is VBA, not network management.)
By the way, our network servers are running several versions of the Windows OS, but mostly they are 2000 Server and 2003 server.<font face="Comic Sans MS">That's what you do in a herd; you look out for each other!</font face=comic> - Mike
2005-09-20, 17:29 #2
- Join Date
- Feb 2001
- Silicon Valley, USA
- Thanked 93 Times in 89 Posts
Re: Setting File Permissions on Network Share (VB)
Is it a programming question or a Windows OS question? <img src=/S/smile.gif border=0 alt=smile width=15 height=15>
I'm not aware of any handy ActiveX controls for this, although there may well be some on the market.
The Windows API probably permits changes to permissions, but the last time I looked at it, I couldn't figure it out.
I have used CACLS in a batch file to make lots of changes. The access permissions you set using CACLS are not as fine-grained as those you can set through the interactive properties dialogs, at least in Windows 2000 they weren't. But they might be good enough for your situation. Study the command-line switches carefully if you want to simply add or modify permissions for a particular group, otherwise, you might overwrite the entire existing ACL list.