Give Ownership to Users Home Directory

I have a simular problem that is shown in the following question:
http://www.experts-exchange.com/Programming/Languages/Scripting/Shell/Batch/Q_22911303.html?sfQueryTermInfo=1+folder+home+ownership

I downloaded and installed the SUBINACL , I then copied and modified Shift-3's script and named it ownership.bat. Below is that script...

@echo off
setlocal

REM The directory containing the home folders.
set homeroot=S:\dfsshared\home\hoffman\

REM Your domain name
set dom=idn.local

for /F "usebackq tokens=*" %%G in (`dir "%homeroot%" /A:D /B`) do (
   subinacl /file "%homeroot%\%%G" /setowner="%dom%\%%G"
)

endlocal
 I then went to the Start>Program files>Windows Resource Kits tols>Command Shell and ran ownership.bat and got the results below.
I had orginally run Shift-3's 1st script in that answer, but got the same results as indicated below....
Elapsed Time: 00 00:00:00
Done:        0, Modified        0, Failed        0, Syntax errors        0
+file S:\dfsshared\home\hoffman\\testuser
/setowner=idn.local\testuser

The Home folders for the users is located on a SAN so not sure if NTFS Permissions need to be set and not sure how to do this sort of thing either.
Any help on this would be apperciated.

Thanks
Chip
edit One more thinkg worth adding, I was using xcacls to give users permissions to their home and profile directories. I also had a version of this that set up ownership but it seems to not work so was looking for alternate solutions.
OSXFreakAsked:
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.

StuFox100Commented:
Change  S:\dfsshared\home\hoffman\ to
 S:\dfsshared\home\hoffman
Cheers
Stu
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
OSXFreakAuthor Commented:
Tried that, no such luck. :(
Elapsed Time: 00 00:00:00
Done:        0, Modified        0, Failed        0, Syntax errors        0
+file S:\dfsshared\home\hoffman\testuser
/setowner=idn.local\testuser
This is the results I get now, I do see the difference in that the +file line now has \testuser instead of \\testuser, but still not getting the results of changing the directory's ownership.

Chip
0
OSXFreakAuthor Commented:
Any help on this one. Shift-3 if yor out there, have a look as you might be able to solve my issue.

Thanks.

Chip
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 Batch

From novice to tech pro — start learning today.