Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a samba share on my server.
I wanted to check users' activities on it so I set 'vfs objects = full_audit' in smb.conf.
It works and logs fine, but there is an annoying problem.
Checking the log file I realised when I upload a file the pwrite paramter appears many times in the log. Practically this event floods my log file.
For example:
May 22 12:24:30 xxx pwrite|ok|qwe/CPU-Z-1.69.zip
May 22 12:24:30 xxx pwrite|ok|qwe/CPU-Z-1.69.zip
May 22 12:24:30 xxx pwrite|ok|qwe/CPU-Z-1.69.zip
And so on approximatelly 50 times until the copy is working : )
Other paramters is working well.
What would cause this problem? Are there any who has encountered similar problem?
It looks like it's just writing to the disk, it does that a lot....
Turn down your logging level to something sane, like 2 or 3 and routine calls will probably go away.
thank you for your response
Honestly, I do not know where I should modify level.
I think here:
full_audit:priority = notice
I have tried to set other value instead of notice but unfortunately it did not have any effect my problem.
I think I should not set any log level because 'syslog only = no' in my conf.
But I have a question:
When I copy a file to my share it is equal upload.
Therefore upload has "tcp slice", so what I see in my log is it a lots of successful "tcp slice"? Probably is it the good, normal behaviour of log?
Explicitly state the log level in the global section of your smb.conf. Reload the config.
Let's make sure the instructions don't work before we redesign the thing.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.