LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 02-01-2005, 03:47 PM   #1
maerong
LQ Newbie
 
Registered: Mar 2004
Distribution: Mandrake 9.2
Posts: 23

Rep: Reputation: 15
Samba "badly formed line in configuration file"


I'm getting a strange error in the Samba logs when I restart the service:

[2005/02/01 22:16:26, 1] param/params.c:Parameter(368)
params.c:Parameter() - Ignoring badly formed line in configuration file: s is the main Samba configuration file. You should read the

(yes that's it, it doesn't tell me what I should read!)

My smb.conf looks like this:

[global]
workgroup = BSD
server string = blah File Server
dns proxy = no
log file = /var/log/samba/log.%m
security = user
encrypt passwords = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
os level = 50
username map = /etc/samba/user.map
max log size = 50
wins support = no

[homes]
comment = Home Directories
browseable = no
read only = no

It seems to be working OK, ie I can read and write files from the windoze clients. So does anyone know what this error means and if it's important?
 
Old 02-01-2005, 05:40 PM   #2
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Does testparm produce the same error? Does your post include the smb.conf in it's entirety or just the relevant parts?
good luck.
 
Old 02-01-2005, 07:11 PM   #3
maerong
LQ Newbie
 
Registered: Mar 2004
Distribution: Mandrake 9.2
Posts: 23

Original Poster
Rep: Reputation: 15
Yes, I get the same error from testparm, and yes, that is my complete smb.conf.

One other thing, which may or may not be relevant - when testparm dumps the parameters on screen, it doesn't include the line about encrypted passwords. Is this normal? Or is this the "badly formed line" that it's ignoring?
 
Old 02-01-2005, 07:21 PM   #4
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Could you post the entire smb.conf as copied and pasted from the terminal into code tags? I ask because I had similar problem, which turned out not to be a problem at all. One line of my smb.conf actually ran into the next line, "as in the return line on a printer", and the cause was the editor and font I was using.

As luck would have it, the line in my smb.conf was fine, samba worked without problems. Testparm, however, returned an error. As described above one line "ran over, so to speak". I'm thinking this may be the same case as your problem.
good luck.
 
Old 02-02-2005, 08:01 AM   #5
maerong
LQ Newbie
 
Registered: Mar 2004
Distribution: Mandrake 9.2
Posts: 23

Original Poster
Rep: Reputation: 15
Yes that seems to be it. I retyped my smb.conf from scratch in vi and the error message has gone away! Thank you for the tip!
 
Old 02-02-2005, 05:19 PM   #6
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Glad you got it sorted.
good luck.
 
  


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
cdrecord command-line parentheses "(" ")" coolingtower Linux - Software 1 10-28-2005 11:49 AM
What does this mean? suSE9.1 ATI "/bin/sh: line 1: scripts/modpost: No such file or" op_stager Linux - Hardware 0 09-29-2004 11:28 PM
Error in man command "sh: line 1: /usr/bin/gtbl: No such file or directory" MinA Slackware 1 09-06-2004 06:36 PM
Can I redirect script output to a file without ">> $LOGFILE" at the end of each line davee Linux - General 1 12-19-2003 05:01 AM
"No new line at end of file" Misel Programming 2 12-05-2003 12:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:10 PM.

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