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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-05-2006, 03:49 PM
|
#1
|
LQ Newbie
Registered: Oct 2006
Posts: 14
Rep:
|
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
|
|
|
10-05-2006, 04:23 PM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
|
|
10-05-2006, 04:25 PM
|
#3
|
LQ Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094
|
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).
|
|
|
10-06-2006, 07:14 AM
|
#4
|
Senior Member
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522
Rep:
|
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
|
|
|
10-06-2006, 07:19 AM
|
#5
|
LQ Newbie
Registered: Oct 2004
Posts: 24
Rep:
|
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 11:35 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|