network logon script execution
Trevor Benson
Tbenson at associatedbp.com
Mon May 7 21:01:36 GMT 2001
Just a thought since I don't use subdirectories to hold my scripts. But the
smb.conf file tends to reference things in the ext2 file system not windows.
Try changing the following so that it references the linux system, not the
way the client would view it.
logon script = scripts\login.bat
to look like this
logon script = scripts/login.bat
Thanks,
Trevor
-----Original Message-----
From: Jeff [mailto:jeffrey at 216.181.255.113]
Sent: Monday, May 07, 2001 3:41 PM
To: samba at lists.samba.org
Subject: RE: network logon script execution
Bas,
Thanks...it is.
/usr/local/samba/netlogon/scripts/:
-rwxrwxr-x 1 root root 58 May 7 12:46 login.bat
contents:
c:\windows\net use z: \\shaggy\public /YES >> c:\smb.log
Jeff
-----Original Message-----
From: Bas [mailto:list at showme.wox.org]
Sent: Monday, May 07, 2001 11:50 AM
To: Jeff
Subject: Re: network logon script execution
Hi,
You should check if /usr/local/samba/netlogon/scripts/login.bat exists, and
if it's world readable.
Hope that helps,
Bas.
----- Original Message -----
From: "Jeff" <jeffrey at 216.181.255.113>
To: <samba at lists.samba.org>
Sent: Monday, May 07, 2001 11:12 PM
Subject: network logon script execution
> 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
>
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: http://lists.samba.org/mailman/listinfo/samba
--
To unsubscribe from this list go to the following URL and read the
instructions: http://lists.samba.org/mailman/listinfo/samba
More information about the samba
mailing list