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
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
""Martin Eggens"" <Egg...@teledynamics.nl> wrote in message
news:97nhb2$1r21$1...@FreeBSD.csie.NCTU.edu.tw...
"Techno^" <som...@microsoft.com> wrote in message
news:97nlf3$25kb$1...@raewyn.paradise.net.nz...
Hope this helps.
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
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
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 !
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.
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 >>>