Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Apr 1999 17:12:49 -0400
From:      "MPN" <neubyneu@twcny.rr.com>
To:        <freebsd-questions@FreeBSD.ORG>
Subject:   Samba question...
Message-ID:  <000501be8784$b881cde0$04c809c0@cmsnet.net>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000501be8784$b881cde0$04c809c0>