1829836 Members
1998 Online
109993 Solutions
New Discussion

smb.conf

 
Angel De Leon
New Member

smb.conf

A general question about the smb.conf.
I've done searches for this file & it's not fiund anywhere in the system. I'm certain samba is intaledd because I can check with RPM & verify the executables location.
I'm new to Linux/samba.

Thanks
6 REPLIES 6
H.Merijn Brand (procura
Honored Contributor

Re: smb.conf

Editing smb.conf is not for the faint of heart. If you are new, why not use swat? Use your browser to connect to your system at port 901

http://127.0.0.1:901
Enjoy, Have FUN! H.Merijn
Angel De Leon
New Member

Re: smb.conf

Ok, I completely understand that. My reason is not to modified but to find out where it is so that It can be pointed to in the module confi section of webmin.
In brief: i ran a prefix after install pointing everything to /usr/, so basically allexecutables are in the /usr/local/samba/bin. Thw ebmin has a section to locate the path where the smb.conf is. It assumes it's on the /etc/samba path.
I'm running RHL 7.3

Thanks again!
Kellogg Unix Team
Trusted Contributor

Re: smb.conf

Did you run 'find' command to locate this file?
find / -name smb.conf
returned /etc/samba/smb.conf for me.

...Manjeet
work is fun ! (my manager is standing behind me!!)
Angel De Leon
New Member

Re: smb.conf

yes I have run find / -name smb.conf -print and nothing comes up.

I wonder why< Why wouldnt it be there in the 1st place?
Also, where should thios be located? in what path?
I guess as default it goes in the /etc/samba.
can i just copy another default smb.con from another system and placed where it should go?

Thanks
John Poff
Honored Contributor

Re: smb.conf

Hi,

Which version of Samba do you have loaded? The smbd executable has the location for the smb.conf file compiled into it, and the standard I have seen in the RPMs is to have it in /etc/samba. The samba daemons also usually write their log files to /var/log/samba, so you could try starting Samba '/etc/rc.d/init.d/samba start' and look in the log files. It should complain about not having an smb.conf file, and if it does it will probably tell you which directory it is looking in.

JP

P.S. Your question relates to Linux, so you might have better luck posting it in the Linux forum next time. This is the HP-UX forum.

Angel De Leon
New Member

Re: smb.conf

Ok
for some reason the smb.conf was not found with the default install of samba. Copied from another system smb.conf and this was found.
Thanks to all@!