-
Log de arquivos - SAMBA
Eu utilizo o samba versão: 3.0.0-15
Aqui aparentemente não houve queda de performance, também é uma rede pequena só tenho 8 estações :?
Pra configurar é o seguinte:
[global]
Eu definio formato da log da seguinte maneira:
# Onde vai gerar logs do tipo: "nome do micro"."nome do usuario".log
log file = /var/log/samba/%m.%U.log
# Não deve gerar nada no log do sistema
syslog = 0
# e no compartilhamento
vfs objects = extd_audit
Conforme o tempo ele ira gerar os arquivos de log na pasta:
/var/log/samba
com o seguinte conteudo:
[root@zeus samba]# head -n 10 wagner.wcunha.log
[2005/10/03 07:17:38, 1] modules/vfs_extd_audit.c:audit_opendir(141)
vfs_extd_audit: opendir .
[2005/10/03 07:17:41, 1] modules/vfs_extd_audit.c:audit_opendir(141)
vfs_extd_audit: opendir .
[2005/10/03 07:17:41, 1] modules/vfs_extd_audit.c:audit_opendir(141)
vfs_extd_audit: opendir .
[2005/10/03 07:17:41, 1] modules/vfs_extd_audit.c:audit_opendir(141)
vfs_extd_audit: opendir .
[2005/10/03 07:17:41, 1] modules/vfs_extd_audit.c:audit_opendir(141)
vfs_extd_audit: opendir .
[root@zeus samba]# head -n 30 wagner.wcunha.log
[2005/10/03 07:17:38, 1] modules/vfs_extd_audit.c:audit_opendir(141)
vfs_extd_audit: opendir .
[2005/10/03 07:17:41, 1] modules/vfs_extd_audit.c:audit_opendir(141)
vfs_extd_audit: opendir .
[2005/10/03 07:17:41, 1] modules/vfs_extd_audit.c:audit_opendir(141)
vfs_extd_audit: opendir .
[2005/10/03 07:17:41, 1] modules/vfs_extd_audit.c:audit_opendir(141)
vfs_extd_audit: opendir .
[2005/10/03 07:17:41, 1] modules/vfs_extd_audit.c:audit_opendir(141)
vfs_extd_audit: opendir .
[2005/10/03 07:17:41, 1] modules/vfs_extd_audit.c:audit_opendir(141)
vfs_extd_audit: opendir .
[2005/10/03 07:17:41, 1] modules/vfs_extd_audit.c:audit_opendir(141)
vfs_extd_audit: opendir .
[2005/10/03 07:17:41, 1] modules/vfs_extd_audit.c:audit_opendir(141)
vfs_extd_audit: opendir .
[2005/10/03 07:17:41, 1] modules/vfs_extd_audit.c:audit_opendir(141)
vfs_extd_audit: opendir .
[2005/10/03 07:17:43, 1] modules/vfs_extd_audit.c:audit_opendir(141)
vfs_extd_audit: opendir .
[2005/10/03 07:17:43, 1] modules/vfs_extd_audit.c:audit_opendir(141)
vfs_extd_audit: opendir .
[2005/10/03 07:17:43, 1] modules/vfs_extd_audit.c:audit_chmod_acl(286)
vfs_extd_audit: chmod_acl Nova pasta mode 0x1ed failed: Operação não suportada
[2005/10/03 07:17:43, 0] modules/vfs_extd_audit.c:audit_mkdir(159)
vfs_extd_audit: mkdir Nova pasta
[2005/10/03 07:17:43, 1] modules/vfs_extd_audit.c:audit_opendir(141)
vfs_extd_audit: opendir ./
[2005/10/03 07:17:43, 1] modules/vfs_extd_audit.c:audit_opendir(141)
vfs_extd_audit: opendir ./
Ai eu uso minha interface em PHP para importar essas logs p o mysql ;)
-
Log de arquivos - SAMBA
Mas ele faz log até de acessos aos arquivos, exemplo: Se o Jose da Silva abrir um documento do word, ele grava também, ou ele grava somente modificações, como salvar, renomear, etc...
????????????????????????????????????????
:?