Solved

USERS home directory creation in NT Server 4.0

Posted on 1998-04-23
2
170 Views
Last Modified: 2013-12-19
I would like to simulate Novell's USERS home directory setup on NT server 4.0.   The way MS suggests is to
Share the directory "USERS" and then specify the path to the individual home directories in the Administrator Tools's Domian Users Profile Utilityy.  Ex.  of the path would be \\Users\user1.  This works fine, it creates the users home direcoty and give appropriet permissions, BUT every user logging in will see everyone elses home directory becuase of the sharing of directory "USERS".  They will be able to see it, but can't access it.  When you have 100 users, you don't want to click on your H drive and see 100 folders.  The only way I can think of is to Share the individual users fodlers, like sharing directory User1, User2......User100.  But this a lot of work becuase you have to manually create the directory , then share it and then give that user permission to the directory. Also that is a huge browser list.

I was wondering if there is any other way of creating home directories in NT server 4.0.   MS's idea of creating home directories is OK if there was a way to hide all other folders under the Share "USERS".  I would appreciate any help that you can give me.  Thank you in advace.
0
Comment
Question by:bfarahi1
  • 2
2 Comments
 

Expert Comment

by:pbryden
ID: 1559480
I would create a share for each users home directory, but add a $ to the end of the share name to make it a hidden share, keeping it out of the browse list. I have written a script to create home dirs, shares and set permissions on the directories. I am not aware of a better way.
0
 

Accepted Solution

by:
pbryden earned 50 total points
ID: 1559481
REM This command script uses the ADDUSERS.EXE and RMTSHARE.EXE from the
rem NT Server Resource Kit. The cacls.exe comes with NT 4.0
rem
rem the addusers /d command must be run from a domain controller to produce
rem  a list of domain users.
rem
addusers /d users.txt /S:;
REM manually edit users.txt to delete the [global] and [local] sections
rem before continuing
rem
rem replace the D:\users and the \\servername as appropriate for your environment
rem run the for command from the server where the user dirs will be created and shared.
REM
REM This command will skip line one ([Users] is on this line) and read the first "token" (username) from the users.txt file,
REM create the directory, share the directory as Username$ with a remark using the users Full Name
rem and set permissions for each directory to Full control for Administrators and System
rem and Change for the individual user.
REM The CACLS output is logged to perms.log in the default directory
REM
for /f "delims=; tokens=1,2 skip =1" %%i in (users.txt) do (md D:\users\%%i) & (rmtshare \\SERVERNAME\%%i$ D:\users\%%i /Remark:"%%j User Share") & (Echo Y|cacls /c /t /p D:\users\%%i %%i:c administrators:f system:f >>perms.log)

0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is the first one of a series of articles I’ll be writing to address technical issues that are always referred to as network problems. The network boundaries have changed, therefore having an understanding of how each piece in the network  puzzl…
Resolve DNS query failed errors for Exchange
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question