I'm not realy sure, there is another parameter in the global section
logon drive = DRIVELETTER:
but I don't think it is needed in your case, anyway it doesn't hurt.
Another quite stupid idea: have you checked, that your win98 box is realy loging into the domain (right click Network Neighborhood select properties, then Client for Microsoft Network then Properties)
If you are unsuccesfull check that your login.bat's net commands are valid in win98, a good idea are if you make separate parts for 9x and NT(2000,XP) e.g:
if %OS%. == WindowsNT. goto NT
REM 9x part
goto END
NT:
REM NT part
:END
I would also suggest to put a
net time \\yourservernamehere /set /yes
line in your login.bat, and /persistent:no option to all net use commands for NT, else you could have strange behavoir if multiple people are using the same workstation just loging in and out
Good Luck!
Geza Gemes
David Baker �rta:
Thanks a bunch man. That really helped. I am so close to what I need I can smell it. :) Now that my W2K machine authenticates perfectly (with login script) I am working to get a W98 machine to do the same. However, it will not run the login script. Any ideas on that?
Here's the new smb.conf
[global] workgroup = DOMAIN server string = ntilinux encrypt passwords = Yes smb passwd file = /etc/samba/passwd max log size = 0 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 add user script = /usr/sbin/useradd -d /dev/null -g 100 -s /bin/false -M %u domain logons = Yes os level = 65 preferred master = Yes domain master = Yes dns proxy = No logon script = login.bat logon home = \\%L\%U\.profile logon path = \\%L\Profiles\%U
[netlogon] comment = The domain logon service path = /etc/samba public = no writeable = no browsable = no
[Public]
comment = Public
path = /home/public
valid users = read only = No
[homes] comment = Home Directories browseable = no writable = yes valid users = %S create mode = 0664 directory mode = 0775
[Profiles] path = /etc/samba/ntprofile read only = no create mask = 0600 directory mask = 0700
-----Original Message----- From: G�mes G�za [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2003 11:28 AM To: David Baker Cc: '[EMAIL PROTECTED]' Subject: Re: [Samba] login script variable problem
The %U and %u variables are samba's not windows, but to generate desired effect, you could use
net use driveletter: /home
in your login.bat
and
logon home = \\%L\%U\.profile logon path = \\%L\Profiles\%U
in your global section of smb.conf
Good Luck!
Geza Gemes
Good morning. Let me start by thanking those of you who helped with my first question posed to this group.
Now, I have a working PDC. This is wonderful. I have a problem with my login script though. I can't seem get the %u or %U variable to work. I am trying to map a drive letter via the login.bat script file for each user that authenticates to the domain, however it seems to strip the % symbol while running and gives an error that it can't find \\ntilinux\u <file://ntilinux/u> or \\ntilinux\U <file://ntilinux/U> respectively.
I am running Red Hat 8.0, Samba 2.2.8 and a W2K workstation.
Can anyone help? Thanks.
Copy of my smb.conf file
[global] workgroup = DOMAIN server string = ntilinux encrypt passwords = Yes smb passwd file = /etc/samba/passwd max log size = 0 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 add user script = /usr/sbin/useradd -d /dev/null -g 100 -s /bin/false -M %u domain logons = Yes os level = 65 preferred master = Yes domain master = Yes dns proxy = No logon script = login.bat
[netlogon] comment = The domain logon service path = /etc/samba public = no writeable = no browsable = no
[Public] comment = Public path = /home/public valid users = read only = No
[homes] comment = Home Directories browseable = no writable = yes valid users = %S create mode = 0664 directory mode = 0775
-- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
