Re: [Samba] "%S" doesn't parse to share name.

2006-01-05 Thread Gerald (Jerry) Carter
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Francis Strickland wrote:
> Hi,
>  
> Our smb.conf specifies share level logging with:
> log file = /var/log/samba/%S.log
> 
> This results in a log file named "%S.log".  I would expect something like
> sharename.log. Can anyone explain this?  I have not been able to Google any
> answers.

The %S is only valid within a given service (share definition).
Log files are reopened at various times but mostly outside the
context of a specific share so the %S variable does not make sense
in this context.





cheers, jerry
=
Alleviating the pain of Windows(tm)  --- http://www.samba.org
Centeris ---  http://www.centeris.com
"There's an anonymous coward in all of us."   --anonymous
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDvVFvIR7qMdg1EfYRAvhXAJ9zHaDjmaaPGMgJ2/J5gkj3M0Ya4ACdGV4U
iK9t9dHpwzlXhX3IZk2OWzE=
=IDMg
-END PGP SIGNATURE-
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] "%S" doesn't parse to share name.

2006-01-05 Thread Francis Strickland
Hi,
 
Our smb.conf specifies share level logging with:
log file = /var/log/samba/%S.log

This results in a log file named "%S.log".  I would expect something like
sharename.log. Can anyone explain this?  I have not been able to Google any
answers.

Samba 3.0.10-1.4e.2 as PDC on RedHat ELS4 with Windows XP2 clients

%m.log gives "machinename.log" as expected.
%m.%S.log gives "machinename.%S.log".
%s.log gives "%s.log"

Output from testparm is:

[global]
workgroup = ...
netbios aliases = ...
server string = ...
passwd program = /usr/bin/passwd %u
passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password*
%n\n *passwd:*all*authentication*tokens*updated*successfully*
unix password sync = Yes
log level = 2
log file = /var/log/samba/%S.log
max log size = 50
time server = Yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
add machine script = /usr/sbin/luseradd -c Samba_Trust_Account -d
/dev/null -g machines -M -n -s /bin/false %u
logon script = login.cmd
logon drive = X:
domain logons = Yes
os level = 255
preferred master = Yes
domain master = Yes
dns proxy = No
wins support = Yes
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
hosts allow = ...
cups options = raw
include = /etc/samba/smb-local.conf

[printers]
comment = All Printers
path = /var/spool/samba
  ...
...

Thanks,
Ashley Strickland
IT Services,  Mercy Ships UK

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba