[Samba] Re: net use H: /home does not work

Jerry Lynde jlynde at diligence.com
Tue Apr 15 23:36:11 GMT 2003


hey cisco!! ;o)

Actually, it's one login script that takes note of the Windows username 
(which is identical to the *NIX usernames) and maps
drives accordingly. It has mostly fallen out of use since we moved to 
Windows 2000 for the workstations, since they retain
memory of mapped drives, so there's no need to remap every login.

I also had a typo in my example... the slashes should be \\ and not //

Also, as Tom stated in his email, you need to specify the hostname that has 
the shares in your net use line, do you not?

For example, I have a local machine called 'stella' which has a home 
directory share. My username is 'jlynde' My home directory on stella is in 
/home/jlynde
I can connect to this share by typing 'net use H: \\stella\jlynde'

If I were to type 'net use H: /home' the error message says 'The option 
/home is unknown.'
that command is syntactically incorrect, at least on a Windows 2000 
Professional workstation.

Jer

At 05:16 PM 4/15/2003, cisco wrote:
>Jer,
>It looks like you have a seperate logon script for each user. Samba is 
>supposed to work with one generic logon script for all users when the 
>homes share is setup and 'logon drive=H' and 'net use H: /home'.
>
>Jerry Lynde wrote:
>>Our setup here has the following in smb.conf...
>>[homes]
>>         comment = Home Directories
>>         username = %S
>>         writeable = Yes
>>         create mask = 0744
>>         force create mode = 0775
>>         directory mask = 0750
>>         browseable = No
>>
>>Slightly different from what you have. The command we use to connect to 
>>the shares is 'net use H: //$hostname/$username' where $hostname = the 
>>*NIX machine with samba running and $username is the *NIX username. Works 
>>like a charm. You may want to try something similar.
>>Jer
>>At 04:44 PM 4/15/2003, cisco wrote:
>>
>>>I don't have a home defined for each user. Samba allows you to create a 
>>>HOMES share that is generic for all users on the system and supposedly 
>>>if you have in your logon script 'net use H: /home' and you have the 
>>>global parameter 'logon drive = H' it's all supposed work magically and 
>>>each user will see their home directory mapped using their logon id.
>>>
>>>Tom.Williams at diversifiedsoftware.com wrote:
>>>
>>>>
>>>>
>>>>I've got Samba installed on AIX, HP-UX, and Solaris servers.  I have
>>>>"Homes" configured on each of them and when we map drives from Windows, we
>>>>map the user's home directory directly:
>>>>net use H: \\{server}\tom
>>>>and "tom" is my Unix login id and the name of my home directory on that
>>>>box.
>>>>Are your Windows IDs different from the defined Unix account names?
>>>>Peace....
>>>>Tom
>>>>
>>>>|---------+------------------------------------------------------------------> 
>>>>
>>>>|         |           cisco 
>>>><cisco at email.arizona.edu>                        |
>>>>|         |           Sent 
>>>>by:                                               |
>>>>|         | samba-bounces+tom.williams=diversifiedsoftware.com at list|
>>>>|         |           s.samba.org
>>  >>   |
>>
>>>>|         |
>>  >>   |
>>
>>>>|         |
>>  >>   |
>>
>>>>|         |           04/15/03 03:21 
>>>>PM                                      |
>>>>|         |
>>  >>   |
>>
>>>>|---------+------------------------------------------------------------------> 
>>>>
>>  >> 
 >>  >-----------------------------------------------------------------------------------|
>>
>>>>   |
>>  >>              |
>>
>>>>   |       To:       samba at lists.samba.org
>>  >>              |
>>
>>>>   |       cc:
>>  >>              |
>>
>>>>   |       Subject:  [Samba] Re: net use H:  /home does not 
>>>> work                       |
>>  >> 
 >>  >-----------------------------------------------------------------------------------|
>>
>>>>
>>>>             "Our mission is to help our clients achieve more 
>>>> cost-effective
>>>>data center operations."
>>>>
>>>>That was already set correctly. It still does not work.
>>>>Greg Miller wrote:
>>>>
>>>>>Try this:
>>>>>
>>>>>Login to swat and go to globals and select advanced view.  Scroll down
>>>>>to the Login Options section and set the logon drive to H:
>>>>>
>>>>>If you don't use swat add logon drive = H: to the samba conf in the
>>>>>global section.
>>>>>
>>>>>-----Original Message-----
>>>>>From: samba-bounces+gmiller=eccbm.com at lists.samba.org
>>>>>[mailto:samba-bounces+gmiller=eccbm.com at lists.samba.org] On Behalf Of
>>>>>cisco
>>>>>Sent: Tuesday, April 15, 2003 5:41 PM
>>>>>To: samba at lists.samba.org
>>>>>Subject: [Samba] net use H: /home does not work
>>>>>
>>>>>The latest Orielly book Using SAMBA 2nd edition says that after you have
>>>>>
>>>>>created a homes share that adding this line to your logon.bat file the
>>>>>user's home directory will be mapped and it will be called their user
>>>>>name. Well the logon.bat script gets an error on this line saying that
>>>>>it is not the proper use of the net use command. So instead I changed
>>>>>the command to net use H: \\pts3\homes and that works except the name
>>>>>that displays on the mapped drive is homes - not the user's logon name.
>>>>>How do I make this work properly?
>>>>>Here is the definition of my homes share:
>>>>>
>>>>>[homes]
>>>>>           comment = Home Directories exported for users
>>>>>           path = %H
>>>>>           valid users = %S
>>>>>           read only = No
>>>>>           create mask = 0600
>>>>>           directory mask = 0700
>>>>>           browseable = No
>>>>>
>>>>>John Francisco
>>>>>University of Arizona
>>>>
>>>>--
>>>>To unsubscribe from this list go to the following URL and read the
>>>>instructions:  http://lists.samba.org/mailman/listinfo/samba
>>>
>>>
>>>--
>>>To unsubscribe from this list go to the following URL and read the
>>>instructions:  http://lists.samba.org/mailman/listinfo/samba
>
>
>--
>To unsubscribe from this list go to the following URL and read the
>instructions:  http://lists.samba.org/mailman/listinfo/samba



More information about the samba mailing list