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 05-01-2012, 06:15 AM   #31
centos123
Member
 
Registered: Apr 2011
Posts: 397

Original Poster
Rep: Reputation: 16

ok i will add this in conf file ...

can you clear my log error which i had posted..
 
Old 05-01-2012, 06:43 AM   #32
kyrunner
LQ Newbie
 
Registered: Apr 2012
Location: New York
Distribution: Centos,Debian
Posts: 29

Rep: Reputation: 1
Quote:
Originally Posted by centos123 View Post
ok i will add this in conf file ...

can you clear my log error which i had posted..

Please explain more about the log error.
 
Old 05-01-2012, 07:00 AM   #33
centos123
Member
 
Registered: Apr 2011
Posts: 397

Original Poster
Rep: Reputation: 16
iam asking i also dont know ...
 
1 members found this post helpful.
Old 05-01-2012, 07:42 AM   #34
kyrunner
LQ Newbie
 
Registered: Apr 2012
Location: New York
Distribution: Centos,Debian
Posts: 29

Rep: Reputation: 1
Quote:
Originally Posted by centos123 View Post
iam asking i also dont know ...

1) What Linux distro are you running

2) what is the out put of this command = testparm

3) what is the output /etc/init.d/smb restart
 
Old 05-01-2012, 11:23 PM   #35
centos123
Member
 
Registered: Apr 2011
Posts: 397

Original Poster
Rep: Reputation: 16
centos 5.4

testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[myshare]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
workgroup = MYGROUP
server string = Samba Server Version %v
security = SHARE
passdb backend = tdbsam
username map = /etc/samba/smbusers
cups options = raw

[homes]
comment = Home Directories
read only = No
printable = Yes
browseable = No

[myshare]
comment = private dir
path = /home/myshare
read only = No
guest ok = Yes
vfs objects = full_audit
full_auditrefix = %u|%I|%m|%S
full_audit:success = mkdir rename unlink rmdir open pwrite
full_audit:failure = none

---------------------------------------------------

while opening samba server gui it gives warning box...
"some line could not be understood while reading the configuration file /etc/samba/smb.conf .These may be unknown configuration directive for samba plugins but could also be configuration error."

297: full_audit:failure = none

298: full_audit:success = mkdir rename unlink rmdir open pwrite

299: full_auditrefix = %u|%I|%m|%S


-------------------------------------------------------

Last edited by centos123; 05-01-2012 at 11:24 PM.
 
Old 05-02-2012, 04:16 PM   #36
jsveiga
Member
 
Registered: Aug 2005
Location: Brazil
Distribution: debian on servers and embedded, kubuntu elsewhere
Posts: 31

Rep: Reputation: 1
Quote:
Originally Posted by centos123 View Post
172.16.13.15 (172.16.13.15) couldn't find service asinghal //what does this line means
Not much, the PC at 172.16.13.15 has tried to access the "asinghal" service or share in the samba server. Could this be the user name in that PC? Or a share name that Windows might "remember" having accessed/tried to access in the past? Windows keeps that obnoxious list of "network places" you have accessed, and might be trying to refresh it somehow. From the samba server point of view, this message is just saying 172.16.13.15 wanted to access "asinghal", but the samba server doesn't have it.

Quote:
Originally Posted by centos123 View Post
[2012/05/01 15:32:38, 0] lib/util_sock.c:read_data(540)
read_data: read failure for 4 bytes to client 172.16.37.30. Error = Connection reset by peer // what does this line means
This might be nothing; you can check the suggestion/explanation on: http://lists.samba.org/archive/samba...st/134625.html

I noticed your log shows accesses both from 172.16.x.x and 192.168.x.x. Do you really have these both networks accessing the samba server (I'm worried that one of them might be the one connected to your ISP).

BR,

Joao S Veiga
 
Old 05-02-2012, 04:28 PM   #37
jsveiga
Member
 
Registered: Aug 2005
Location: Brazil
Distribution: debian on servers and embedded, kubuntu elsewhere
Posts: 31

Rep: Reputation: 1
Quote:
Originally Posted by centos123 View Post
centos 5.4
"some line could not be understood while reading the configuration file /etc/samba/smb.conf .These may be unknown configuration directive for samba plugins but could also be configuration error."

297: full_audit:failure = none

298: full_audit:success = mkdir rename unlink rmdir open pwrite

299: full_auditrefix = %u|%I|%m|%S
Check if you have the full_audit.so module in /usr/lib/samba/vfs or /usr/local/samba/lib/vfs (depends on your distro).

What is your distro and samba version? I use debian squeeze, samba 3.5.6, and these modules came available as default.

BR,

Joao S Veiga
 
Old 05-03-2012, 02:23 AM   #38
centos123
Member
 
Registered: Apr 2011
Posts: 397

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by jsveiga View Post
Check if you have the full_audit.so module in /usr/lib/samba/vfs or /usr/local/samba/lib/vfs (depends on your distro).

What is your distro and samba version? I use debian squeeze, samba 3.5.6, and these modules came available as default.

BR,

Joao S Veiga
i use centos 5.4. and i didnot find in any of the directory u mention...
 
Old 05-03-2012, 02:28 AM   #39
centos123
Member
 
Registered: Apr 2011
Posts: 397

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by jsveiga View Post
Not much, the PC at 172.16.13.15 has tried to access the "asinghal" service or share in the samba server. Could this be the user name in that PC? Or a share name that Windows might "remember" having accessed/tried to access in the past? Windows keeps that obnoxious list of "network places" you have accessed, and might be trying to refresh it somehow. From the samba server point of view, this message is just saying 172.16.13.15 wanted to access "asinghal", but the samba server doesn't have it.



This might be nothing; you can check the suggestion/explanation on: http://lists.samba.org/archive/samba...st/134625.html

I noticed your log shows accesses both from 172.16.x.x and 192.168.x.x. Do you really have these both networks accessing the samba server (I'm worried that one of them might be the one connected to your ISP).

BR,

Joao S Veiga

in had both network 172.16.x.x and 192.168.x.x ....server is on 192. and most of user connected with samba server had 192. ip's and few has 172. ip's....both are on different location....

& asinghal is both share dir and window user..172.16.13.15 has asinghal account but 2days before i deleted....

Last edited by centos123; 05-03-2012 at 02:40 AM.
 
Old 05-03-2012, 04:36 PM   #40
jsveiga
Member
 
Registered: Aug 2005
Location: Brazil
Distribution: debian on servers and embedded, kubuntu elsewhere
Posts: 31

Rep: Reputation: 1
Quote:
Originally Posted by centos123 View Post
i use centos 5.4. and i didnot find in any of the directory u mention...
hmm, I have zero knowledge on centos, but a quick google seems to indicate that centos 5.4 does not have samba 3.x, and the modular vfs came up in samba 3.

again, what is your samba version? "smbstatus" shows it.

BR,

Joao S Veiga
 
Old 05-04-2012, 03:50 AM   #41
centos123
Member
 
Registered: Apr 2011
Posts: 397

Original Poster
Rep: Reputation: 16
smbstatus

Samba version 3.0.33-3.14.el5
PID Username Group Machine
-------------------------------------------------------------------

Service pid machine Connected at
-------------------------------------------------------

No locked files
 
Old 05-04-2012, 06:33 AM   #42
kyrunner
LQ Newbie
 
Registered: Apr 2012
Location: New York
Distribution: Centos,Debian
Posts: 29

Rep: Reputation: 1
This might help

http://www.linuxquestions.org/questi...ux-smb-808012/
 
Old 05-04-2012, 06:42 AM   #43
kyrunner
LQ Newbie
 
Registered: Apr 2012
Location: New York
Distribution: Centos,Debian
Posts: 29

Rep: Reputation: 1
Quote:
Originally Posted by centos123 View Post
i use centos 5.4. and i didnot find in any of the directory u mention...


I'm running Centos 6.2 and I have /usr/lib/samba/vfs. Inside this folder are the samba moduals that you need to audit share access. 5.4 might be running an older version of samba.

Here is some good documentation.

http://www.linuxtopia.org/online_boo...30_VFS_08.html

Last edited by kyrunner; 05-04-2012 at 06:44 AM.
 
Old 05-05-2012, 01:33 AM   #44
pantdk
Member
 
Registered: Oct 2011
Location: New Delhi
Posts: 248
Blog Entries: 3

Rep: Reputation: 17
put this entry in "smb.conf".that will make a log file of those users which are connect from any machine to the samba share at you Linux machine you can identify the ip or user.

log level = 0 vfs: 0
log file = / var / log / samba / log.% m
max log size = 0

# & restart or reload the smb service then check.

Last edited by pantdk; 05-05-2012 at 01:35 AM.
 
Old 05-07-2012, 12:05 AM   #45
centos123
Member
 
Registered: Apr 2011
Posts: 397

Original Poster
Rep: Reputation: 16
thanks jsveiga pantdk kyrunner.....every thing whar ever you are posting iam continously following and being with you also.

after adding in conf file iam getting this error
Unable to open new log file / var / log / samba / log.% m: No such file or directory

what this log.%m?
 
  


Reply



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
Accessing SAMBA shared folder through Ftp (PROFTPD) vvagao Debian 1 10-13-2009 12:49 PM
Windows machine can not see my samba shared folder. mtlhd Linux - Server 13 05-09-2009 09:01 PM
Accessing Linux shared folder from Windows XP bekiricli Linux - Newbie 8 02-10-2009 03:50 PM
how do i connect to a windows shared folder using samba? winstone5000 Linux - Networking 1 12-19-2005 10:38 AM
Samba not accessing my Windows Shared folders Felpipe Linux - Networking 3 08-04-2005 08:34 AM

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

All times are GMT -5. The time now is 10:18 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