Using SetACL to change inheritance

Posted on 2007-10-03
Last Modified: 2013-12-23
I have several users home directories with an ACE set to full access for the user, but "this folder only"  I'm trying to use setacl.exe to change it to "this folder sub folders and files" for that user.  I have come up with this script but it seems I'm missing something, as it doesn't work.  

SetACL.exe -on "%homeshare%" -ot file -actn ace -ace "n:DTHS\%username%;p:full;so,sc" -op "dacl:np;sacl:np" -actn rstchldrn rst "dacl,sacl"  -rec cont_obj -ignorerr

Any ideas ???
Question by:sean-keys
    LVL 8

    Expert Comment

    is this in any way dealing with a server??  SetACL.exe is a free program for setting permissions on Windows NT/2000/XP systems.
    use explorer

    Author Comment

    I don't want to use explorer because I would have to do the same thing for some 500 directories.
    LVL 8

    Expert Comment

    is this in any way dealing with a server??  

    Author Comment

    yes it is
    LVL 8

    Expert Comment

    Some technical information is  needed before giving the right advice.  
    SetACL.exe is a free program for setting permissions on Windows NT/2000/XP systems.
    Which w2k3 or w2K server is it?
    Is this using Windows Server 2003 Terminal Services?
    Are Windows NT 4 computers in use?

    LVL 8

    Accepted Solution

    " Microsoft Windows 2000 Server
    " Microsoft Windows 2000 Advanced Server
    " Microsoft Windows 2000 Professional Edition
    " Microsoft Windows 2000 Datacenter Server
    " Microsoft Windows NT Workstation 3.51
    " Microsoft Windows NT Workstation 4.0 Developer Edition
    " Microsoft Windows NT Server 3.51
    " Microsoft Windows NT Server 4.0 Standard Edition
    >>>>>>    How To Automate Folder Permissions

    it not one solution for all.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
    This is an article about Leadership and accepting and adapting to new challenges. It focuses mostly on upgrading to Windows 10.
    As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
    The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now