LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Samba - which smb.conf file? (https://www.linuxquestions.org/questions/linux-newbie-8/samba-which-smb-conf-file-489773/)

henrnorl 10-05-2006 03:49 PM

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

acid_kewpie 10-05-2006 04:23 PM

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.

pljvaldez 10-05-2006 04:25 PM

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).

ethics 10-06-2006 07:14 AM

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

Seb74 10-06-2006 07:19 AM

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.


All times are GMT -5. The time now is 03:38 AM.