Re: Code to remove a user group from file or folder ACL
- From: "musenyin via WinServerKB.com" <u13021@uwe>
- Date: Thu, 23 Mar 2006 13:42:59 GMT
I looked into xcacls.vbs, but am not sure that this will do what I want.
Switch /R will revoke specified user's access rights, but not remove the user
group. For example: my program will download file permission for a file on
day 1. The user groups are "administrators", "system", "lg_processors", and
"xnn8tty". On day 7 I perform the same download and now there are 5 user
groups because "everyone" is now present besides the prior four. This is
usually caused by the user checking the inherit from parent box on the
advance permission tab. What I need to know is how to delete/remove
"everyone" user group from that file using vb code and not set revoke
permission or remove it using the remove button on the advanced tab. I
thought about using /net command remove user, but I believe that will delete
everyone from all files in my domain. Your help is greatly appreciated.
Roger Abell [MVP] wrote:
Check out xcacls.vbs which you can obtain from search on the
filename (note: that is .vbs) at microsoft.com/downloads
This VBscript file examples pretty much any possible ACL
manipulation. Also, you could look into fileacl from sourceforge.
I'm using subinacl.exe to download file permissions on a server. Then, we[quoted text clipped - 7 lines]
edit certain permissions once a week. However, I need to know how to
can
do the job?
--
Message posted via WinServerKB.com
http://www.winserverkb.com/Uwe/Forums.aspx/windows-server-security/200603/1
.
- Follow-Ups:
- Re: Code to remove a user group from file or folder ACL
- From: Roger Abell [MVP]
- Re: Code to remove a user group from file or folder ACL
- References:
- Code to remove a user group from file or folder ACL
- From: Michael via WinServerKB.com
- Re: Code to remove a user group from file or folder ACL
- From: Roger Abell [MVP]
- Code to remove a user group from file or folder ACL
- Prev by Date: Is Windows 2003 firewall safe?
- Next by Date: Re: Intermittent traffic issue
- Previous by thread: Re: Code to remove a user group from file or folder ACL
- Next by thread: Re: Code to remove a user group from file or folder ACL
- Index(es):