Drive mappings

Mark Haney mhaney at
Fri Mar 2 15:39:32 GMT 2001

After reviewing my Samba docs, you are right, it does default to Z: and you
have to alter the behaviour my forcing windows clients to a specific drive.
With an all NT (or 2k) solution, the mapping specified in User Manager.

-----Original Message-----
From: samba-ntdom-admin at
[mailto:samba-ntdom-admin at]On Behalf Of Stan Sander
Sent: Friday, March 02, 2001 10:34 AM
To: Mark Haney
Cc: Martin Eggens; samba-ntdom at
Subject: Re: Drive mappings

Mark Haney wrote:

> Is it possible that the Z: drive was statically mapped?  That's about the
> only way I can think of that the drive mapping still show up with the
> script diabled.  I have never seen it otherwise. Try disconnecting that
> mapping and logging in again.
> Hope this helps.

> -----Original Message-----
> From: samba-ntdom-admin at
> [mailto:samba-ntdom-admin at]On Behalf Of Martin Eggens
> Sent: Friday, March 02, 2001 2:13 AM
> To: samba-ntdom at
> Subject: Drive mappings
> Hi,
> I'm using samba 2.2.0alpha on Linux and made it a PDC.
> I was successfull in creating a logon script that is executed by an NT
> machine.
> One strange thing happens now....
> In the logon script I do somethin like :
> NET USE M: \\donald\martin
> Now the share /home/martin is mapped to the M: drive at the NT4
> but
> also a mapping is made to Z:
> When I remove the line from the logon script then also the mapping to Z:
> still there.
> Does samba automatically map the home directory of the user to Z:......or
> there some
> configuration paramter to overcome this problem?
> Best regards,
> Martin Eggens
> eggens at

I'm not 100% sure about NT behaviour but I think this is a Windows NT
that relates to profiles.  The Samba default for logon home is \\%N\%U,
when coupled with being a PDC results in the Windows clent mapping the Z:
drive.  If you want to disable roaming profiles (and thereby the mapping of
Z drive if I'm correct) you should define logon home =      and logon drive
=     in your smb.conf file.  In other words assign both of them a null
Perhaps another option is to place the command `net use M: /HOME' in your
script.  I have `net use H: /home' in mine but I have only Win 98 clients.
hope somone will correct me if I'm wrong, but that's how I would proceed.

Stan Sander - CSU Special Projects              Sandia National Laboratories
(505) 284-4915                                  Mail Stop 0662
                                                1515 Eubank Blvd. SE
                                                Albuquerque, NM 87123

More information about the samba-ntdom mailing list