Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.
April 22, 1999
In tip 1254, we granted users Full Control on files in their own folder (JSIFCUAll) or to all files in a specified folder (JSIFCU).
To grant users Full Control on files that they own in a common (specified) folder, we need to determine ownership.
To perform the subject task:
JSIFCOwner Folder DomainName
JSIFCOwner.bat contains:
@echo offif NOT {%2}
"/owner" goto endset user=%2set user="%user:~2,99%set work=%user%set work=%work:"=%for /f "Tokens=1 Delims=" %%i in ('@echo %work%') do set auth=%%iif /i not "%domain%"=="%auth%" goto endCACLS %file% /E /C /P %user%:F:end
NOTE: SubInACL causes this batch job to run very slowly.
You May Also Like