Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 12-18-2006, 01:06 AM   #1
Registered: Dec 2005
Location: South Africa
Distribution: CentOS,Ubuntu,Fedora
Posts: 249

Rep: Reputation: 30
SAMBA Log files and reading them

Good Day

I am running a Samba file server for a large organization. The log level has been increased to "3", what I want to do is to be able to monitor who is accessing what files and when they do it.

I need to be able to check details of which user accessed file and so on....The samba log files dont appear to do this.

Is there software out there that will enable me to do this??

Old 12-18-2006, 03:28 PM   #2
Registered: Sep 2006
Location: Sydney Australia
Distribution: fedora/Ubuntu
Posts: 100

Rep: Reputation: 16

The log files contain some references to users connecting to a samba share and you would need to write a sed or awk script to extract the information. To test, log in from machine1 on a Windows client under "user1" say and then grep user1 log.machine1 and you'll find reference to the login. Log level 3 is probably a bit high and there are heaps of "stuff" that is not very useful and it fills your server with log dross. Yu might try lowering it to 2 and see if the test still works for you.

Alternatively you can examine /var/log/messages file for samba references. In the past I have notice samba connections being logged but today I notice I'm only getting samba data base errors.

There are also all the network monitoring commands that can give you information such as netstat, mtr and tcpdump or ethereal. These also have practical limitations but are interesting to play with.


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
Reading the log files using Java sboothman Programming 3 11-16-2006 07:32 AM
Reading Log files with NetTracker PensJunkie Linux - Software 2 07-30-2005 10:11 AM
Samba Log Files dunmarie Linux - Software 2 12-11-2004 08:52 AM
Samba Errors Are Filling My Log Files Help :( Carlm81 Linux - Networking 6 06-04-2004 07:47 AM
Can log files be time stamped? (such as FTP login and transfer log files) bripage Linux - Networking 6 08-08-2002 11:55 PM

All times are GMT -5. The time now is 06:50 PM.

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