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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
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: 42,830
|
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
|
|
Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:30 PM.
|
|
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
|
|