Setting file and folder ownerships

  • Thread starter Thread starter RF
  • Start date Start date
R

RF

Hi,

How can I set file and folder ownership via vbscript or any other language?

Thanks in advance,

RF
 
RF said:
How can I set file and folder ownership via vbscript or any other language?

Hi

Have you considered using a command line tool for this?

SUBINACL in the Win2k Resource kit is able to do this:

subinacl /noverbose /file \\server\share\dir /setowner=whoever
subinacl /noverbose /subdirectories \\server\share\dir\* /setowner=whoever


If you don't have the Win2k RK, the Subinacl.exe in the Windows Server 2003 RK
(free) will maybe work on Win2k as well.

Windows Server 2003 Resource Kit Tools
http://www.microsoft.com/downloads/...69-57ff-4ae7-96ee-b18c4790cffd&DisplayLang=en

(The kit will install on WinXP or later so you can get to Subinacl.exe)
 
Subinacl rocks.
Except for the fact that it doesn't (didn't) work on volumes.

Did the 2003 version fix this?

Note: we mainly started using it for our Services for Unix NFS Server. The
Unix users would cry if they didn't see their name and primarygroup on a
file. (even though the permissions were correct)

--
Steven BerkHolz
Do not send email to (e-mail address removed)
Send to Domain TESCOGroup dot com, username SB

Note: you may also want to know that you should never send mail to:
(e-mail address removed)
(e-mail address removed)-ass.net
(e-mail address removed)
(e-mail address removed)
(e-mail address removed)
(e-mail address removed)-abuse.org
(e-mail address removed)
(e-mail address removed)
 
Back
Top