Tools to Give Apply NTFS permissions

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.

Thanks
ram
LVL 3
moorthy_kulumaniAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Steve KnightIT ConsultancyCommented:
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

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

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

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

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

:error

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

:end
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Steve KnightIT ConsultancyCommented:
Fine by me.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows 2000

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.