LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 11-02-2011, 03:07 AM   #1
klorko
LQ Newbie
 
Registered: Dec 2005
Posts: 7

Rep: Reputation: 0
Samba - log files


I have a question about Samba log files. Is there any easy way to check who and when modified a file in a specified directory? I can't find any sensible solution. Please help!
 
Old 11-02-2011, 07:50 PM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,287

Rep: Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034
Are you asking about who modified a log file, or who modified a normal file ?

Generally, Unix files have perms options
Code:
user(owner) group other(world)
rwx         rwx      rwx
and ownerships of user & group.
You can lock them down pretty tight using ownerships & perms. See also ACLs if you want to get really picky...
 
Old 11-03-2011, 04:43 AM   #3
klorko
LQ Newbie
 
Registered: Dec 2005
Posts: 7

Original Poster
Rep: Reputation: 0
I know there are permisions and ownerships, but I don't want to forbid writing. I just want to know who modified a file and when. Is it possible?
 
Old 11-03-2011, 05:04 AM   #4
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
You will need to use auditing. Either a VFS module in samba, or using the general auditd kernel daemon.

See the Samba 3 HOWTO guide in Chapter 23. It covers stackable VFS modules.

You may have a "samba-doc" package available that supplies this book in pdf and/or html form, or you can download it from the samba.org website.
 
  


Reply

Tags
log, samba


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Samba filling log files up ostrosky.jeremiah Linux - Newbie 5 10-02-2011 02:21 AM
Is there any way to log user samba who delete or move files/folders on samba server ? b-RAM Linux - Server 1 02-09-2010 12:33 AM
SAMBA Log files and reading them shawnbishop Linux - Software 1 12-18-2006 02:28 PM
Samba Log Files dunmarie Linux - Software 2 12-11-2004 07:52 AM
Samba Errors Are Filling My Log Files Help :( Carlm81 Linux - Networking 6 06-04-2004 06:47 AM


All times are GMT -5. The time now is 08:41 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration