Re: Replacing groupname on share permissions
From: Al Dunbar [MS-MVP] (alan-no-drub-spam_at_hotmail.com)
Date: 07/24/04
- Next message: Randy Snyder: "Re: Replacing groupname on share permissions"
- Previous message: Randy Snyder: "Replacing groupname on share permissions"
- In reply to: Randy Snyder: "Replacing groupname on share permissions"
- Next in thread: Randy Snyder: "Re: Replacing groupname on share permissions"
- Reply: Randy Snyder: "Re: Replacing groupname on share permissions"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 24 Jul 2004 17:16:10 -0600
"Randy Snyder" <aggie07@austin.rr.com> wrote in message
news:sFBMc.25830$pR5.19229@fe2.texas.rr.com...
> I am needing to change the share level permission where GroupA replaces
> GroupB. Has anyone done this? Can you point me in the right location. I
> have looked at Win32_Share for WMI and it doesn't have this functionality.
IMHO, the replacement of group with another in an ACL is not an elemental
operation. What you need to do is to create a new ACL to give groupA the
required access, and then revoke the access of GroupB. I suppose you could
create your own function to simulate this, i.e.:
function permreplace(object, oldgroup, newgroup)
for each acl on object that oldgroup has
create a similar acl for newgroup
revoke the acl for oldgroup
next
end function
I think, though, that this would imply a poorly thought out permissions
management strategy. Better to have a single group given access to the
share, and populate that group with whatever other groups need access.
Changing permissions is generally something that should be done when the
resource is created, and as infrequently as possible thereafter.
/Al
- Next message: Randy Snyder: "Re: Replacing groupname on share permissions"
- Previous message: Randy Snyder: "Replacing groupname on share permissions"
- In reply to: Randy Snyder: "Replacing groupname on share permissions"
- Next in thread: Randy Snyder: "Re: Replacing groupname on share permissions"
- Reply: Randy Snyder: "Re: Replacing groupname on share permissions"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|