LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-30-2016, 07:39 PM   #1
keirvt
Member
 
Registered: Sep 2006
Location: Sydney Australia
Distribution: fedora/Ubuntu
Posts: 156

Rep: Reputation: 18
samba full audit file names


I am using samba to provide shares to users. Sometimes a users claims their files have mysteriously disappeared so I am keen to track deletions.

Thus I set up full audit.
Everything works, except the audit log is often missing the file name or has some sort of mystery code. For example;

Code:
Dec 12 17:46:04 server1 smbd_audit:
shared|shared|192.168.x.x|matt1|shared|2016/12/12
17:46:04|server1|file_id_create|ok|802:28200da:0
The file name should be the last field but in this case appears as
802:28200da:0

Why is there a number instead.
Many entries only show a dot at the end or a zero.
The main item needed for this tracking is the actual file name the log as it is of limited help. Please can anyone suggest how I can get the file names into the log?


The relevant part of /etc/samba/smb.conf is
Code:
[homes]
   comment = Home Directories
   browseable = yes
   create mask = 0775
   directory mask = 0775

   writable = yes
   vfs objects = recycle
   recycle:repository = .RecycleBin
   recycle:keeptree = yes
   recycle:exclude = *.bak *.tmp,*.temp,*.o,*.obj,~$*,*.~??,~*.*,*.TMP,*.TEMP,lock.*,.~lock.*,LOCK.*,*.lock,*.~lock,*.LNK,*.lnk,*.ldb
   recycle:minsize = 1

   vfs objects = full_audit
   #full_audit:prefix = %u|%I|%S
   full_audit:prefix = %u|%U|%I|%m|%S|%T|%D
   full_audit:success = mkdir rename unlink rmdir open close read pread write realpath
   full_audit:failure = none
   full_audit:facility = LOCAL5
   full_audit:priority = NOTICE
 
  


Reply

Tags
samba



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] samba/rsync file names! timl Linux - Software 2 06-15-2015 03:50 AM
Case insensitive file names with samba for windows compatibility jan78 Linux - General 7 04-30-2014 02:36 AM
Changing the data/audit file names for 4 level commodity hierarchies (homework question) abinash Linux - Newbie 6 03-16-2012 03:36 PM
Can i limit new file names created to 8 characters with samba ? amitsharma_26 Linux - Networking 1 12-16-2005 05:42 AM
Korean File Names and Samba rzoster Linux - Software 0 04-13-2004 08:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration