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