Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Drive mappings

3 views
Skip to first unread message

Martin Eggens

unread,
Mar 2, 2001, 2:15:46 AM3/2/01
to
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 Workstation, but
also a mapping is made to Z:

When I remove the line from the logon script then also the mapping to Z: is still there.
Does samba automatically map the home directory of the user to Z:......or is there some
configuration paramter to overcome this problem?

Best regards,
Martin Eggens
egg...@teledynamics.nl

Techno^

unread,
Mar 2, 2001, 3:34:56 AM3/2/01
to
with NT you need to use the /persistant:no switch

so...

net use h: /home /persistant:no

or

net use h: \\whg-data2\lonneyh /persistant:no

this tells NT not to remember the map

see
http://bioserve.latrobe.edu.au/samba/profiles.html

for a some ideas on logon scipts

the current script we are using for the Information Systems group with in
our company with the server I'm building to take the load off our current
NT4 Server is..

REM Sync the time system clock with the time server
net time \\whg-data2 /set /yes
@echo off
if %OS%.==Windows_NT. goto WinNT

:Win95
@echo map H:\ to home share
net use h: /home
@echo map I:\ to common share
net use i: \\whg-data\common-is

@echo map P:\ to public share
net use p: \\whg-data\public
goto end

:WinNT
@echo map H:\ to home share
net use h: /home /persistant:no
@echo map I:\ to common share
net use i: \\whg-data\common-is /persistant:no
@echo map P:\ to public share
net use p: \\whg-data\public /persistant:no
goto end
REM pause for debug
REM pause
:end

the common share is a share that users of a group can read and write files
that they need to share. but users from other groups cant access
the public share is read only to all but writeable by the IS (information
systems) group for things like virus updates etc.

we are using Samba 2.0.6 on Red Hat 6.2. dual PIII 600 EB with 512MB ram and
heaps of RAID 5 SCSI, this box will have around 500 users in time and will
probably serve our growing Intranet. not my choice as i wanted to go with
FreeBSD 4.2 but one of other admins has already started using Red Hat
because it holds your hand more with its RPM's and the like which is silly
becuase we run 2 Digital ALPHA's with Digital UNIX and BSD is quite similar
to it... but thats another story of politics..... :)

I'm currently working out policies for users and us Admins to lock the
machines down... started on that one today...

home this helps ya out..

Lonney Harper
Information Systems
Northland Health Limited
Whangarei
New Zealand

lon...@nhl.co.nz


""Martin Eggens"" <Egg...@teledynamics.nl> wrote in message
news:97nhb2$1r21$1...@FreeBSD.csie.NCTU.edu.tw...

Techno^

unread,
Mar 2, 2001, 3:44:58 AM3/2/01
to
woops couple of typos with the shares... all should start with \\whg-data2
missed the 2 off in a few places


"Techno^" <som...@microsoft.com> wrote in message
news:97nlf3$25kb$1...@raewyn.paradise.net.nz...

Mark Haney

unread,
Mar 2, 2001, 6:47:54 AM3/2/01
to
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 login
script diabled. I have never seen it otherwise. Try disconnecting that
mapping and logging in again.

Hope this helps.

Christian Barth

unread,
Mar 2, 2001, 8:36:57 AM3/2/01
to
see the "logon dirve" parameter in man smb.conf. If the NT-WS lockes into a domain, a mapping of the home direktory is done. If logon drive is not spezified it is done with z:

I have set logon drive = h: and in the login skript only "not home shares" a mapped.

BTW:
NT uses the "logon dirve": NT4.0 Terminal Server there creats a "windows" directory to store the settin of 16-Bit applications (and some times the dll's if you install one, but the dll's are not found there wenn needed.)

Christian

Stan Sander

unread,
Mar 2, 2001, 10:35:33 AM3/2/01
to
Mark Haney wrote:

I'm not 100% sure about NT behaviour but I think this is a Windows NT "feature"
that relates to profiles. The Samba default for logon home is \\%N\%U, which
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 the
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 value.
Perhaps another option is to place the command `net use M: /HOME' in your logon
script. I have `net use H: /home' in mine but I have only Win 98 clients. I
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

Mark Haney

unread,
Mar 2, 2001, 10:39:30 AM3/2/01
to
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.

David Bannon

unread,
Mar 4, 2001, 4:07:47 AM3/4/01
to
At 08:13 AM 2/3/2001 +0100, Martin Eggens wrote:
>.....

>also a mapping is made to Z:
>

Yes, its a NT thing. Although you can force it to do another drive as well,
its confusing to users. Experienced NT users will expect to find Z: mapped
anyway.

David
------------------------------------------------------------
David Bannon D.Ba...@latrobe.edu.au
School of Biochemistry Phone 61 03 479 2197
La Trobe University, Plenty Rd, Fax 61 03 479 2467
Bundoora, Vic, Australia, 3083
------------------------------------------------------------
..... Humpty Dumpty was pushed !

Mark Haney

unread,
Mar 5, 2001, 7:36:10 AM3/5/01
to
Sorry about the late nature of this reply, new computer doesn't like my DSL
quite yet. ;)

I am an experienced NT user and administrator and I have NEVER seen this
behaviour on NT. Not for home directories or anything else that wasn't
explicitly defined.

Martin Eggens

unread,
Mar 5, 2001, 9:17:54 AM3/5/01
to
Hi,

Me Neither.....made a setting in smb.conf that forses to map the home directory to M:
I'm happy now:-))

Best regards,
Martin

>>> "Mark Haney" <mha...@info4cars.com> 03/05/01 01:34pm >>>

0 new messages