Hi list,
Issue regarding the samba log files. In the samba configuration
file Global settings i have the parameter to
get log files of particular samba shares in the share_name.log format. For
that i have given the parameter as
log file = /var/log/%S.log
According to the docs the log files will be generated for particular shares
in the /var/log and for %S the sharename has to come.
But for us its showing as %S.log itself. We have tried with %m and %U which
is replaced with the machine netbios name and the samba
username respectively.
Can anybody tell me why its not working with %S? Or i have to do something
more to get it work?
I am attaching Global Settings part of the samba configuration file here,
[global]
server string=sanat server
netbios name=sanat
wins server=192.168.0.1
log level=2
security=user
encrypt passwords=yes
socket options=TCP_NODELAY
read raw=yes
write raw=yes
oplocks=no
level2 oplocks=no
template shell=/bin/false
unix extensions=no
directory mask=0770
create mask=0770
veto
files=/aquota.group/aquota.user/lost+found/.owner*/quota.user/quota.group/
root preexec=/usr/local/samba/bin/smb-preexec '%S' '%I'
'%U' '%a'
'%T'
root preexec close=Yes
root postexec=/usr/local/samba/bin/smb-postexec '%S'
'%I' '%U' '%a'
'%T'
log file = /var/log/%S.log
Thanks in advance.
--
regards,
Rahul
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Rahul wrote:> Can anybody tell me why its not working with %S?%S is only valid within the context of a share connection. cheers, jerry ====================================================================Samba ------- http://www.samba.org Centeris ----------- http://www.centeris.com "What man is a man who does not make the world better?" --Balian -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGQcdrIR7qMdg1EfYRAt4TAKCLcAyQ7+RjNtnElFM8XtTbP3HznACfY9D1 DjDFo2Rj907SH3xXrabmsVg=cSUN -----END PGP SIGNATURE-----
I want seperate log files for every shares. Is it possible to accomplish it using any method? On 5/9/07, Gerald (Jerry) Carter <jerry@samba.org> wrote:> > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Rahul wrote: > > > Can anybody tell me why its not working with %S? > > %S is only valid within the context of a share connection. > > > > cheers, jerry > ====================================================================> Samba ------- http://www.samba.org > Centeris ----------- http://www.centeris.com > "What man is a man who does not make the world better?" --Balian > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.6 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFGQcdrIR7qMdg1EfYRAt4TAKCLcAyQ7+RjNtnElFM8XtTbP3HznACfY9D1 > DjDFo2Rj907SH3xXrabmsVg> =cSUN > -----END PGP SIGNATURE----- >-- regards, Rahul Sahadevan SANAT Technologies (Intel Storage Community member) http://www.sanatdata.net mob : 09884 423254 =============================== Dont tell people your problems ....... 70% dont care and other 30% are glad!! ================================