We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

Tools to Give Apply NTFS permissions

moorthy_kulumani
on
Medium Priority
222 Views
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.

Thanks
ram
Comment
Watch Question

IT Consultancy
CERTIFIED EXPERT
Commented:
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

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Steve KnightIT Consultancy
CERTIFIED EXPERT

Commented:
Fine by me.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.