LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 10-05-2006, 03:49 PM   #1
henrnorl
LQ Newbie
 
Registered: Oct 2006
Posts: 14

Rep: Reputation: 0
Samba - which smb.conf file?


I want to edit the Samba configuration file. I've searced and found smb.conf 5 places on the computer. How can I know which one is used by Samba?

./etc/samba/smb.conf
./usr/share/doc/samba-doc/examples/dce-dfs/smb.conf
./usr/share/doc/samba-doc/examples/pdb/mysql/smb.conf
./usr/share/doc/samba-doc/examples/tridge/smb.conf
./usr/share/samba/smb.conf
 
Old 10-05-2006, 04:23 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,384

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
seeing as three of them are in directories called "examples" i though tthey'd have been self explanatory, not sure what the last one is going to be, may well be a symlink to thet /etc one. either way it's the /etc/ one you need to modify.
 
Old 10-05-2006, 04:25 PM   #3
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
I know it's not the middle three. I didn't even realize the last one was there. But when I edit /etc/samba/smb.conf, it works for me (on Debian).
 
Old 10-06-2006, 07:14 AM   #4
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
It's always been the first one on multiple distros i've tried.

Don't forget to restart the service once you have made changes, there is also some sort of testing program to make sure its ok i think
 
Old 10-06-2006, 07:19 AM   #5
Seb74
LQ Newbie
 
Registered: Oct 2004
Posts: 24

Rep: Reputation: 15
Quote:
Originally Posted by ethics
It's always been the first one on multiple distros i've tried.

Don't forget to restart the service once you have made changes, there is also some sort of testing program to make sure its ok i think
Even same on OpenBSD.
The testprogram to check the syntax of the edited smb.conf I believe is "testparm".
Just write "testparm" and see if there are any warnings.
 
  


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
Samba + smb.conf help. jwholey Linux - Software 1 07-05-2006 11:25 PM
Reinstalling Samba doesn't recover the original /etc/samba/smb.conf Akhran Debian 2 11-11-2005 12:54 AM
samba conf smb.conf regnier Mandriva 5 02-17-2005 04:27 AM
samba smb.conf lukalinuix Linux - Networking 5 06-21-2004 06:32 AM
Samba start up questions...Setting up share files and smb.conf file Xeroku Linux - Newbie 1 04-17-2003 10:10 PM


All times are GMT -5. The time now is 05:02 PM.

Main Menu
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