dobos_s@IBCnet.hu
2000-Nov-20 17:47 UTC
scripts called by program not working under tng, but they work under 207
Hi! There are bash scripts dealing with dns update and passwd change. They work under samba 207, but dont work under tng cvs. There is for example a line: echo [$(date)] >> logfile Under 207 it writes the current time, but under tng there are only the brakets, and nothing more. Why? Cly smb.conf [global] workgroup = mydomain netbios name = pdc netbios aliases = sv-itgroup sv-webteam sv-office sv-salesteam server string = Samba NT emulation %v passwd program = /usr/local/samba-tng/bin/pwchanger %u passwd chat = password: %n\n *OK* unix password sync = yes encrypt passwords = yes update encrypted = yes smb passwd file = /usr/local/samba-tng/private/smbpasswd min password length = 1 message command = /usr/bin/logger -is -p kern.err Message from %f on %m; /usr/bin/logger -is -p kern.err -f %s; rm %s & load printers = no socket options = IPTOS_LOWDELAY TCP_NODELAY SO_KEEPALIVE max log size = 5000 log level = 10 debug timestamp = no debug pid = yes debug uid = yes name resolve order = wins lmhosts host bcast preserve case = yes short preserve case = yes guest account = nobody unix realname = yes map hidden = no map system = no map archive = no os level = 65 local master = yes domain master = yes preferred master = yes time server = yes wins support = yes wins hook = /usr/local/samba-tng/bin/dns_update security = user domain logons = yes logon script = scripts/%U.bat logon path = \\pdc\profiles\%U logon drive = X: logon home = \\pdc\%U browseable = no domain group map = /usr/local/samba-tng/private/domaingroup.map domain user map = /usr/local/samba-tng/private/domainuser.map local group map = /usr/local/samba-tng/private/localgroup.map include = /usr/local/samba-tng/lib/smb.conf.%L
Robert Dahlem
2000-Nov-27 19:19 UTC
scripts called by program not working under tng, but they work under 207
On Mon, 20 Nov 2000 18:47:18 +0100, dobos_s@IBCnet.hu wrote:>There are bash scripts dealing with dns update and passwd change. >They work under samba 207, but dont work under tng cvs. >There is for example a line: > >echo [$(date)] >> logfile > >Under 207 it writes the current time, but under tng there are only >the brakets, and nothing more. >Why?I guess that's because "$(date)" is not Bourne shell syntax. Either configure: wins hook = /bin/bash /usr/local/samba-tng/bin/dns_update or make the first line of dns_update look like #!/bin/bash (not indented!) or change the line to echo "[`date`]" >> logfile Latter method preferred (Bourne shell syntax). Regards, Robert -- --------------------------------------------------------------- Robert.Dahlem@gmx.net Fax +49-69-432647 --------------------------------------------------------------- Sent using PMMail (http://www.pmmail2000.com) - fast, decent, email software; far better than Outlook. Try it sometime.