LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 06-04-2004, 02:43 AM   #1
Carlm81
LQ Newbie
 
Registered: Jun 2004
Posts: 5

Rep: Reputation: 0
Samba Errors Are Filling My Log Files Help :(


Hi, I have fedora core 1 running on a server at work, used as a file server with samba 3.0411. The problem is my log files are filling up with errors. About 10 per second whilst samba is in use. Ive googled but cant find any solutions. This was happening with older version of samba too so ive upgraded to the latest and it hasnt changed. Please help me

small snipet of the errors:
[2004/06/03 17:18:34, 0] lib/util_str.c:safe_strcpy_fn(602)
ERROR: string overflow by 1 (19 - 18) in safe_strcpy [project file index.doc]
[2004/06/03 17:18:34, 0] lib/util_str.c:safe_strcpy_fn(602)
ERROR: string overflow by 1 (9 - 8) in safe_strcpy [PROJE~QV.DOC]
[2004/06/03 17:18:34, 0] lib/util_str.c:safe_strcpy_fn(602)
ERROR: string overflow by 1 (19 - 18) in safe_strcpy [project file index.doc]
[2004/06/03 17:18:34, 0] lib/util_str.c:safe_strcpy_fn(602)
ERROR: string overflow by 1 (9 - 8) in safe_strcpy [PXXXX~VN.TXT]

thats in the smbd.log i also have alot of simular errors in the messages.log all string overflows.

smb.conf :

# Samba config file created using SWAT
# from 0.0.0.0 (0.0.0.0)
# Date: 2004/03/15 12:32:55

# Global parameters
[global]
workgroup = WORKGROUP
server string = fc1
password server = None
guest account = all
username map = /etc/samba/smbusers
log level = 1
log file = /var/log/samba/%m.log
max log size = 50
deadtime = 15
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
load printers = No
mangling method = hash
dns proxy = No
oplock break wait time = 100
ldap ssl = no
valid users = @COMP-ALL
create mask = 0775
directory mask = 0775
guest ok = Yes
dos filemode = Yes
local master = no
os level = 65
domain master = no
preferred master = no
wins support = yes
name resolve order = wins lmhosts host bcas
[www]
comment = FC1 Webserver
path = /var/www
read list = carl
write list = carl
force user = all
force group = COMP-ALL
read only = No
guest ok = No
only user = Yes

[homes]
comment = Home Directories
path = /home/%u
read only = No

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No

[NET-Eng]
comment = Product Design
path = /mnt/net/NET-Eng
write list = @COMP-ALL
force user = all
read only = No
vfs objects = recycle
 
Old 06-04-2004, 03:25 AM   #2
kbcnetau
Member
 
Registered: Dec 2003
Location: South Australia (ex-Devon, UK)
Distribution: SuSE, Slackware, Fedora, Debian, Knoppix
Posts: 141

Rep: Reputation: 15
The look of the errors would suggest a bug in the Samba code. Are you using the latest version? If not, an upgrade may fix.

HOWEVER, if Samba isn't causing you any problems (check for corrupt files!), you could either:
1) change the log level in smb.conf [I think that 0 may be off]
2) change the log file in smb.conf to /dev/null

If you think this is too much like putting tape over the "check engine" light in your car (automobile), you could try searching for your error in the Samba mailing list. There's an archive search at <http://marc.theaimsgroup.com/?l=samba&r=1&w=2>

Hope something here is of help.
 
Old 06-04-2004, 03:55 AM   #3
Carlm81
LQ Newbie
 
Registered: Jun 2004
Posts: 5

Original Poster
Rep: Reputation: 0
Thank you for your reply, Yes i am using the latest version, i was seeing the same thing with older version which promted me to get the newest one. I dont seem to be getting corrupted files as a result of this and i seem to get these errors on every file that is accessed.

Here are a few lines from the messages log:

Jun 4 08:49:13 mandrake1 nss_wins[6883]: ERROR: string overflow by 1 (9 - 8) in safe_strcpy [NEW M~W_.DOC]
Jun 4 08:49:13 mandrake1 nss_wins[6883]: [2004/06/04 08:49:13, 0] lib/util_str.c:safe_strcpy_fn(602)
Jun 4 08:49:13 mandrake1 nss_wins[6883]: ERROR: string overflow by 1 (28 - 27) in safe_strcpy [New Microsoft Word Document.doc]
Jun 4 08:49:14 mandrake1 nss_wins[6883]: [2004/06/04 08:49:14, 0] smbd/service.c:make_connection_snum(541)
Jun 4 08:49:14 mandrake1 nss_wins[6883]: Can't become connected user!
Jun 4 08:49:14 mandrake1 nss_wins[6883]: [2004/06/04 08:49:14, 0] smbd/service.c:make_connection_snum(541)
Jun 4 08:49:14 mandrake1 nss_wins[6883]: Can't become connected user!
Jun 4 08:49:14 mandrake1 nss_wins[6883]: [2004/06/04 08:49:14, 0] lib/util_str.c:safe_strcpy_fn(602)
Jun 4 08:49:14 mandrake1 nss_wins[6883]: ERROR: string overflow by 1 (9 - 8) in safe_strcpy [NEW M~W_.DOC]

what is interesting is the errors are reported for everyfile in the directorys i went through not just the oness i opened.

Would really prefer to fix the problem so i can stop worrying about it.
 
Old 06-04-2004, 05:20 AM   #4
kbcnetau
Member
 
Registered: Dec 2003
Location: South Australia (ex-Devon, UK)
Distribution: SuSE, Slackware, Fedora, Debian, Knoppix
Posts: 141

Rep: Reputation: 15
Did you compile this yourself? If so, how old is your glibc?
 
Old 06-04-2004, 05:38 AM   #5
Carlm81
LQ Newbie
 
Registered: Jun 2004
Posts: 5

Original Poster
Rep: Reputation: 0
Nope i used RPM's
 
Old 06-04-2004, 05:54 AM   #6
kbcnetau
Member
 
Registered: Dec 2003
Location: South Australia (ex-Devon, UK)
Distribution: SuSE, Slackware, Fedora, Debian, Knoppix
Posts: 141

Rep: Reputation: 15
Whoo! I just put safe_strcpy into Google and got a load of results - looks like you are looking at a documented Samba bug!

If there aren't any Samba users on this forum who have the problem and can advise you of a patch, just:
<http://www.google.com/search?q=safe_strcpy>
 
Old 06-04-2004, 07:47 AM   #7
Carlm81
LQ Newbie
 
Registered: Jun 2004
Posts: 5

Original Poster
Rep: Reputation: 0
Yes there are lots of posts about all different types of string errors. i think i found one that matches mine and he said it happened when he used the recycle vfs, so i have removed that and im waiting to everyone goes how to restart smb and see if it works
 
  


Reply


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
Cron Log filling up barnzenen AIX 3 10-09-2004 07:04 PM
ksymoops log filling disk to 100% lobo78 Linux - General 0 06-26-2004 01:04 PM
Samba Errors from Log -- LAN unstable soren625 Linux - Networking 0 05-21-2004 04:35 PM
mgetty.ttyS0 log file filling up capstone737 Linux - General 10 11-25-2003 01:05 PM
/var/log/messages --filling up rapidly lub0 Linux - Security 1 10-13-2003 08:16 AM


All times are GMT -5. The time now is 02:41 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration