|
-
September 12th, 2000, 01:17 PM
#1
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???
-
September 12th, 2000, 04:53 PM
#2
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.
-
September 13th, 2000, 08:38 AM
#3
Sounds interesting. Where do I find the NTReskit?
Thanks
-
September 15th, 2000, 04:20 AM
#4
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
-
Forum Rules
|
|