Making Folder Shares
Results 1 to 4 of 4

Thread: Making Folder Shares

  1. #1
    Join Date
    Sep 2000
    Location
    Forestville, NY 14062
    Posts
    4

    Making Folder Shares

    OK, you guys (and gals) are really good. Let's try you on this one. Is there an easy way to make a bunch of folders that have the usernames as the name for each one and create a share for each of them with that name?

    Confused???


  2. #2
    Join Date
    May 1999
    Posts
    51
    forest2,
    You will need addt'l reading on this, but here's a copy of my batch file which I use to do what you're looking for:

    rem @Echo off
    cls
    goto start

    This batch script shares users' home drives with share and NTFS permissions
    granted only to themselves. This means that only users will have access
    to their own respective home drives.

    :start
    for /f %%A in (user.txt) do xcacls d:\user\%%A /T /G %%A:C;C Administrators:F;F "Domain Admins":F;F /Y
    for /f %%A in (users.txt) do rmtshare \\ccrynrfs02\%%A$=d:\user\%%A /grant %%A:c /remark:"%%A's hidden home drive."

    In the NTReskit, you will find XCACLS and RMTSHARE utils that I call from this batch file. You will have to create all your users directory via an MD USERNAME commmand. Then create a text file say users.txt to with all of your usernames such as,

    doej
    smithk
    schwarzeneggera
    chanj

    Save this file and run with the above script.
    Note1: You must run the script local to the server as if your logged in directly from your server.

    Note2: Adjust the permission for the XCACLS and RMTSHARE accordingly to fit your needs.

    Hope this helps.


  3. #3
    Join Date
    Sep 2000
    Location
    Forestville, NY 14062
    Posts
    4
    Sounds interesting. Where do I find the NTReskit?

    Thanks

  4. #4
    Join Date
    Jul 2000
    Location
    Finland
    Posts
    165
    Hi
    NT Recouce Kit is a supplemet to Windows NT. You'll have to buy it. It comes in two versions one for WinNT 4.0 Server and one for WinNT 4.0 Workstation.

    In command prompt (=DOS window), with NET SHARE you can make folder shares and with CACLS.exe you can edit the user rights.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •