Create a folder called USERS. In USERS folder, create folders for each
user, share the folders appended by a $ sign. Then for windows 98 machines,
you can use the %username%. Try the following:

net config | find /I "User">usor.bat
echo set USERNAME=%%2>user.bat
call usor.bat
del us?r.bat >nul
net use <drive letter>: \\<server name>\%username%$

For NT workstations, you can use %username% as is without the above script.

Make sure net.exe is in the path.

Suhail


                                                                                       
                            
                    "Terry"                                                            
                            
                    <terry@stweb.        To:     "NT System Admin Issues" 
<[EMAIL PROTECTED]>  
                    com>                 cc:                                           
                            
                                         Subject:     RE: Folder permissions           
                            
                    09/05/2001                                                         
                            
                    10:59 AM                                                           
                            
                    Please                                                             
                            
                    respond to                                                         
                            
                    "NT System                                                         
                            
                    Admin Issues"                                                      
                            
                                                                                       
                            
                                                                                       
                            





   To answer a few questions, my clients are Windows 98 machines, so
sharing out the directory via \\servername\sharename\%USERNAME% is not
available. Wish I could, that would have been done long before. As far as
sharing each directory, I would have also done that, but with the extra
admin work needed to create hundreds of accounts per year, plus with the
staff doing the adding not being that knowledgable on NT Server, I wanted
to make it as simple as can be.

  Thanks,
Terry Caleb

---------- Original Message ----------------------------------
From: "Correa, Andre" <[EMAIL PROTECTED]>
Reply-To: "NT System Admin Issues" <[EMAIL PROTECTED]>
Date: Wed, 5 Sep 2001 08:53:09 -0400

>My suggestions are as follows:
>
>If the users are NT workstation, share the top-level folder (Users) as a
>hidden share, and use login scripts and have the following command in the
>logon script:
>
>Subst H: \\Server1\Users$\%username%
><file:///\\Server1\Users$\%25username%25>
>
>If the clients are 2000 professional, just use login script to map the
drive
>as follows,
>
>Net use H: \\Server1\Users$\%username%
><file:///\\Server1\Users$\%25username%25>
>
>This is much easier, giving each user a "home" drive (hence the H drive
>letter) then doing what you wanted.  Plus, since the user folder is a
hidden
>share, no one but the admin can see it.
>
>
>
>____________________________________________
>Andre Correa
>Senior Manager/Information Technology
>Lexitron, Inc
>(201) 892-6399
>
>-----Original Message-----
>From: EALES, Jack / RSAIFS - IOM [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, September 05, 2001 8:34 AM
>To: NT System Admin Issues
>Subject: RE: Folder permissions
>
>Not quite an answer to your question.... but a solution perhaps - share
each
>home dir instead, and point a standard drive to it (P for personal is
>logical...??) using profiles in NT or group policy in Win2K. Controlling
>access is a bit more work if you want to keep admin shares - but it works
>for us.
>-----Original Message-----
>From: Terry [ mailto:[EMAIL PROTECTED]]
>Sent: 05 September 2001 13:36
>To: NT System Admin Issues
>Subject: Folder permissions
>
>THIS MESSAGE ORIGINATED ON THE INTERNET - Please read the detailed
>disclaimer below.
>----------------------------------------------------------------------
>  Has anyone played around with the permissions enough to answer my
>question. I want to be able to give read access to a folder, but only
allow
>users to be able to see the folders that they have permissions to below
that
>folder. If I have a share called temp, and there are folders below that
>called temp2 and temp3, but they only have access to temp2, I do not want
>them to see temp3 folder. I have played with the advanced tab objects, but
>have not been able to work. I am using this for student access in a
school,
>but I want to make it as easy as possible for the students to find their
>home directory, without having to scroll through alot of directories.
>Thanks,
>  Terry Caleb
>http://www.sunbelt-software.com/ntsysadmin_list_charter.htm
>
>
>
>----------------------------------------------------------------------
>The following message has been automatically added by the mail gateway to
>comply with a Royal & Sun Alliance IT Security requirement:
>As this email arrived via the Internet you should be cautious about its
>origin and content. Replies which contain sensitive information or
>legal/contractual obligations are particularly vulnerable. In these cases
>you should not reply unless you are authorised to do so, and adequate
>encryption is employed.
>If you have any questions, please speak to your local desktop support team
>or IT security contact.
>----------------------------------------------------------------------
>http://www.sunbelt-software.com/ntsysadmin_list_charter.htm
>
>
>http://www.sunbelt-software.com/ntsysadmin_list_charter.htm
>
>
>


http://www.sunbelt-software.com/ntsysadmin_list_charter.htm






http://www.sunbelt-software.com/ntsysadmin_list_charter.htm

Reply via email to