Tools to Give Apply NTFS permissions

Posted on 2006-03-23
Last Modified: 2010-04-13
Hi, I haved used Xcacls.vbs to apply NTFS permission on Cluster but somehow it screwed my Cluster and all the permission are lost.

I am looking for resource kit tool where in i can use that and give NTFS rights to 3000 users on their home directories and common directories.

Question by:moorthy_kulumani
    LVL 43

    Accepted Solution

    Standard cacls.exe will do it and subinacl.exe to take ownership for the user.  Something like this:

    call setrights.cmd with a paramater which is the username.  You could write a loop to go down all directories and call this if your directory structure allows:

    @echo off
    REM Set Rights Script
    REM Steve Knight

    Set user=%1

    if "%1"=="" goto error

    echo Setup user, profile, and data directories with permissions for %user%
    title Setup user data profile directories for %USER% %2

    if exist \\server\users\%user% goto skip1
      echo Creating users directory
      md \\server\users\%user%

    echo This may take some while.  Please Wait...

    echo Setting USERS directory permissions
    echo Y|cacls \\server\users\%user% /e /t /g  domain\%user%:C > nul

    echo Taking ownership of USERS area
    subinacl /noverbose /subdirectories \\server\users\%user%\*.* /setowner=domain\%user%
    subinacl /noverbose /file \\server\users\%user% /setowner=domain\%user%

    goto end


    echo SETRIGHTS.  Steve Knight. Jan 2002.
    echo Usage setrights username
    echo You typed: %0 %1 %2 %3
    echo This sets permissions and ownership for domain user
    echo Requires SUBINACL from Resource Kit

    LVL 43

    Expert Comment

    by:Steve Knight
    Fine by me.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
    Find out how to use Active Directory data for email signature management in Microsoft Exchange and Office 365.
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    758 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

    11 Experts available now in Live!

    Get 1:1 Help Now