I think this is best done from the server. First export the full list of users. For info on doing this I think both these sites give examples. http://www.jsiinc.com/ http://www.ntfaq.com/
Next create a batch file something like this (I am making this up as I go so it might need debugging)
**********************************
mkdir [drive:]\USERS\%UserID%
XCACLS.EXE [drive:]\USERS\%UserID% /t /c /g administrator:fo;fo /y
RMTSHARE \\SERVER\%UserID%$=[drive:]\USERS\%UserID% /grant %UserID%:f users:2 /remark:%FullName%
RMTSHARE \\SERVER\%UserID%$ /grant Administrators:f
**************************
(xcalcs & rmtshare are from the NT resource kit)
Next process all the exported userid through this batch script using the FOR command. For an example of doing this see
http://www.jsiinc.com/
If I had to do this, this is how I would do it.
But if you wish to do it in a script from Win95 clients, I think you might
1)create a global share called "users" and attach it with "use" or shell out to "net use".
2) check for the existance of the subdirectory "userid"
3) if it doesn't exist create it
4) shell out to "net share" to create a share for the sub-directory "userid".
I don't believe Win9x clients have any control over setting ownership permissions on the NT server but I suspect that the default permissions set will be the users & this is what you want.
PS: In NT there are 2 kinds of permissions. One relates to ownership & is set by calcs or xcalcs. I do not believe this can be directly controlled by Win9x clients. The second kind is share permissions. These can be set by "net share" in both NT & Win9x clients. If you have NT clients you can also use rmtshare which provides you with greater flexibility. In your note it is not clear which type of permission you are refering to.
[This message has been edited by JackLothian (edited 24 May 2000).]