Re: Setting special permission on files and folders from a script

From: Roger Abell (mvpNOSpam_at_asu.edu)
Date: 03/17/05


Date: Thu, 17 Mar 2005 13:02:57 -0700

Go search for xcacls.vbs at microsoft.com/downloads
(note: that was .vbs)

-- 
Roger
"Amihai Bareket" <amihai73@hotmail.com> wrote in message
news:uK2t1BsKFHA.3616@TK2MSFTNGP09.phx.gbl...
> Ok, Here's my problem -
> I'm using scripts (Batch, VBScript) to create multiple directories with
> different permissions on the folders.
> When I create a new folder I need to set ACL so specific user groups will
> have modify permission to all objects that will be created under that
> directory, but won't be able to modify the directory folder itself (delete
> or rename).
> Because I need to use inheritance, changing the permission on the folder
> itself will change the permission also on subfolders that will be created.
> I know how to do this from Windows GUI (modify permissions for subfolders
> and files only), but how can I do it from a script?
>
> I normally use CACLS or XCACLS to set ACL on files and folders.
>
> Any Ideas?
>
>


Relevant Pages

  • Re: Practice Test with Wrong Answers?
    ... "The Modify permission does not include the Delete Subfolders and Files ... so permanent employees cannot delete files form the Progress ... When I try this out the modify permissions for the parent folder get ...
    (microsoft.public.cert.exam.mcsa)
  • Re: Save but should not delete
    ... One of my xp prof domain users has a shared folder on his pc which other ... I have checked every permission but if i don't give modify ... If a user has Modify Permission he can delete it. ... If word worked like notepad then during the save you run out of disk space (or ...
    (microsoft.public.windows.server.general)
  • Re: Setting special permission on files and folders from a script
    ... > I'm using scripts to create multiple directories with ... > have modify permission to all objects that will be created under that ... but won't be able to modify the directory folder itself (delete ... > Because I need to use inheritance, changing the permission on the folder ...
    (microsoft.public.windows.server.general)
  • Re: Setting special permission on files and folders from a script
    ... >I'm using scripts to create multiple directories with ... but won't be able to modify the directory folder itself (delete ... >Because I need to use inheritance, changing the permission on the folder ... >I normally use CACLS or XCACLS to set ACL on files and folders. ...
    (microsoft.public.scripting.vbscript)
  • Re: Setting special permission on files and folders from a script
    ... >I'm using scripts to create multiple directories with ... but won't be able to modify the directory folder itself (delete ... >Because I need to use inheritance, changing the permission on the folder ... >I normally use CACLS or XCACLS to set ACL on files and folders. ...
    (microsoft.public.windows.server.general)

Loading