network logon script execution

Jeff jeffrey at 216.181.255.113
Mon May 7 21:12:48 GMT 2001


Hello,

I am using samba-2.2 on a redhat lin 7 box, and am using domain logons.  It
logs in the user in with no problem, but I cannot get it too properly run a
logon script.

Here is smb.conf:

workgroup = HOMEETHER.NET
server string = Samba Server
hosts allow = 192.168.0. 209.41.216. 209.41.217. 209.41.216.218. 127.
logon script = scripts\login.bat
log file = /var/log/samba/log.%m
max log size = 50
security = user
encrypt passwords = yes
smb passwd file = /etc/smbpasswd
username map = /etc/smbusers
remote announce = 192.168.0.255
local master = yes
os level = 99
domain master = yes
preferred master = yes
domain logons = yes
wins support = yes
dns proxy = no

[netlogon]
   comment = Network Logon Service
   path = /usr/local/samba/netlogon
   guest ok = no
   writable = no
   share modes = no
   oplocks = no
   browseable = yes
   writelist = @username

[public]
   comment = Public
   path = /new/public
   public = yes
   writable = yes
   printable = no
   write list = all

[mp3]
   comment = MP3's
   path = /new/mp3
   public = yes
   writable = yes
   printable = no
   valid users = @mp3
   write list = jeffrey

[winprogs]
   comment = Windows Programs
   path = /home/.winprog
   public = yes
   writable = yes
   printable = no
   write list = all

Here is my scripts/login.bat file:

c:\windows\net use z: \\shaggy\public /YES >> c:\smb.log

Here is the output to c:\smb.log:

The command was completed successfully.

My log.smbd has had nothing new in it for several days.
My log.nmbd just has the general logging from when nmbd was last restarted.

It does validate my password according to /etc/smbpasswd.  All of my shares
work correctly.  I have tried logging in from several different windows98
machines and an ME, and they all do the same thing.
Does anyone have any idea?

Thank You,
Jeff





More information about the samba mailing list