From owner-freebsd-questions Thu Apr 15 14: 9:58 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mail1.twcny.rr.com (mail1-0.twcny.rr.com [24.92.226.74]) by hub.freebsd.org (Postfix) with ESMTP id E91FA15154 for ; Thu, 15 Apr 1999 14:09:52 -0700 (PDT) (envelope-from neubyneu@twcny.rr.com) Received: from kramer.cmsnet.net ([24.92.245.57]) by mail1.twcny.rr.com (Post.Office MTA v3.5.2 release 221 ID# 0-53939U80000L80000S0V35) with SMTP id com for ; Thu, 15 Apr 1999 17:03:46 -0400 Message-ID: <000501be8784$b881cde0$04c809c0@cmsnet.net> From: "MPN" To: Subject: Samba question... Date: Thu, 15 Apr 1999 17:12:49 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I'm having some troubles with samba-1.18p8. What I *want* to do is have the logon script say something like "Welcome username." I know I am able to do it by putting the command in an individual logon script for each user. Problem is that I use the same logon script for everyone. It's a "generic" script. From what I understand, I can use the preexec command to have this happen. I've had no luck with it yet. Here is my smb.conf file. Please help me place the preexec in the correct place. Currently it's in the netlogon share part. Thanks in advance. [global] workgroup = CMS server string = Mike's room load printers = yes log file = /usr/local/samba/var/log.%m max log size = 50 security = user encrypt passwords = yes socket options = TCP_NODELAY local master = yes os level = 55 domain master = yes preferred master = yes domain logons = yes logon script = %U.bat dns proxy = no #============================ Share Definitions [homes] comment = Home Directories browseable = no writable = yes create mode= 0750 [mp3] comment = MP3 Files browseable = yes public = yes writable = yes path = /MP3 [netlogon] comment = Network Logon Service preexec = echo "hi %u" path = /usr/local/samba/lib/netlogon guest ok = yes writable = yes share modes = no write list = neuby [printers] comment = All Printers path = /usr/spool/samba browseable = no guest ok = no writable = no printable = yes [quake2] comment = Quake2 Files path = /quake2 public = yes writeable = yes write list = neuby [public] comment = Public stuff path = /usr/public writable = yes public = yes write list = neuby [cdrom] comment = CDROM Tower path = /cdrom writable = yes public = yes write list = neuby [policies] comment = Windows Policies path = /usr/dos writable = yes public = yes write list = neuby -- Mike - President, Computer Management Systems -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message