Help answer threads with 0 replies.
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, 12: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, 02:28 PM   #2
Registered: Sep 2006
Location: Sydney Australia
Distribution: fedora/Ubuntu
Posts: 127

Rep: Reputation: 17

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 06:32 AM
Reading Log files with NetTracker PensJunkie Linux - Software 2 07-30-2005 09:11 AM
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
Can log files be time stamped? (such as FTP login and transfer log files) bripage Linux - Networking 6 08-08-2002 10:55 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:07 AM.

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