LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-05-2012, 04:16 AM   #1
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 648

Rep: Reputation: 45
smb.conf file location after make install


hi,
I have installed samba 3.5.12 on my CentOS5.1.I have uninstall old samba files from my system using yum and download samba 3.5.12.After decompressing I took following steps

Code:
1-   ./autogen.sh 
2-   ./configure
3-    make
4-    make isntall
Usually smb.conf file reside on /etc/samba/smb.conf or /usr/local/samba/lib/smb.conf but I does not find any smb.conf file after installation

Kindly guide me what should be the issue.
thanks,
gardenair
 
Old 01-05-2012, 05:02 AM   #2
rockstar05
Member
 
Registered: Dec 2011
Posts: 83

Rep: Reputation: Disabled
Hi,

please find that file using find command.

If it doesn't works then please put the output of following command

#rpm -qa | grep samba*

Thanks
 
Old 01-05-2012, 05:06 AM   #3
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 648

Original Poster
Rep: Reputation: 45
It show nothing

Code:
[root@localhost ~]# rpm -qa | grep samba
[root@localhost ~]#


Thanks,
gardenair
 
Old 01-05-2012, 05:11 AM   #4
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
while installing packages from zip file you should look out for

README or INSTALL or similar files which contains almost all the helpful details.

So I would advise you to look at all the files inside your downloaded package.You might find something helpful
 
Old 01-05-2012, 05:22 AM   #5
rockstar05
Member
 
Registered: Dec 2011
Posts: 83

Rep: Reputation: Disabled
Hi,

yes this means that you have not correctly installed the samba packages please re-install the samba packages by using rpm or yum with full dependencies.

#rpm -ivh <full path samba rpm stored>

OR

#yum install samba* -y

command.

Please read README manual given in that decompressed folder.

Thanks
 
Old 01-05-2012, 05:46 AM   #6
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 193Reputation: 193
Quote:
Originally Posted by rockstar05 View Post
yes this means that you have not correctly installed the samba packages please re-install the samba packages by using rpm or yum with full dependencies.

#rpm -ivh <full path samba rpm stored>

OR

#yum install samba* -y
I believe rpm and yum, will only show results if the package was installed via these utilities. Since the OP compiled samba from source, rpm/yum dont know anything about it, and thus wont return any results.

OP, i would suggest firstly,
Code:
# updatedb && locate smb.conf
failing that, you may need to create it yourself.
try searching through the makefile for the config file location
Code:
cd /path/to/makefile
grep "CONFIGFILE" makefile
and create your smb.conf there.
 
Old 01-05-2012, 07:24 AM   #7
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 648

Original Poster
Rep: Reputation: 45
Thanks for the replies. Well I have tried


Code:
[root@localhost ~]# updatedb && locate smb.conf
/etc/pam_smb.conf
/etc/samba/smb.conf.rpmsave
/root/samba-3.5.12/docs/htmldocs/manpages/smb.conf.5.html
/root/samba-3.5.12/docs/manpages/smb.conf.5
/root/samba-3.5.12/docs-xml/manpages-3/smb.conf.5.xml
/root/samba-3.5.12/docs-xml/scripts/indent-smb.conf.pl
/root/samba-3.5.12/docs-xml/xslt/smb.conf-html.xsl
/root/samba-3.5.12/examples/smb.conf.default
/root/samba-3.5.12/examples/dce-dfs/smb.conf
/root/samba-3.5.12/examples/tridge/smb.conf
/root/samba-3.5.12/examples/tridge/smb.conf.WinNT
/root/samba-3.5.12/examples/tridge/smb.conf.fjall
/root/samba-3.5.12/examples/tridge/smb.conf.lapland
/root/samba-3.5.12/examples/tridge/smb.conf.vittjokk
/root/samba-3.5.12/packaging/LSB/smb.conf
/root/samba-3.5.12/packaging/centos5.1/setup/smb.conf
/root/samba-3.5.12/packaging/centos5.1-CTDB/setup/smb.conf
/root/samba-3.5.12/packaging/SGI/smb.conf
/root/samba-3.5.12/packaging/Solaris/smb.conf.default
/root/samba-3.5.12/source4/setup/provision.smb.conf.dc
/root/samba-3.5.12/source4/setup/provision.smb.conf.member
/root/samba-3.5.12/source4/setup/provision.smb.conf.standalone
/root/samba-3.5.12/testdata/samba3/smb.conf
/root/samba-3.5.12/testsuite/build_farm/template/basicsmb.smb.conf
/root/samba-3.5.12/testsuite/build_farm/template/basicsmb.smb.conf.domain
/root/samba-3.5.12/testsuite/build_farm/template/basicsmb.smb.conf.hostsdeny
/root/samba-3.5.12/testsuite/build_farm/template/basicsmb.smb.conf.hostsequiv
/root/samba-3.5.12/testsuite/build_farm/template/basicsmb.smb.conf.invalidusers
/root/samba-3.5.12/testsuite/build_farm/template/basicsmb.smb.conf.preexec
/root/samba-3.5.12/testsuite/build_farm/template/basicsmb.smb.conf.preexec_cl_fl
/root/samba-3.5.12/testsuite/build_farm/template/basicsmb.smb.conf.preexec_close
/root/samba-3.5.12/testsuite/build_farm/template/basicsmb.smb.conf.server
/root/samba-3.5.12/testsuite/build_farm/template/basicsmb.smb.conf.share
/root/samba-3.5.12/testsuite/build_farm/template/basicsmb.smb.conf.user
/root/samba-3.5.12/testsuite/build_farm/template/basicsmb.smb.conf.validusers
/usr/local/samba/man/man5/smb.conf.5
/usr/local/samba/swat/help/manpages/smb.conf.5.html
/usr/share/doc/pam_smb-1.1.7/pam_smb.conf.example
[root@localhost ~]#
Here I can see numbers of smb.cong file but these are not proper configurationsf file.

As you said

Code:
cd /path/to/makefile
grep "CONFIGFILE" makefile
I does not know where is the makefile path and it means
grep smb.cong makefile

these are not clear to me.

For more information about samba folder,after extracting the compress file it is now in /home .
kindly just explain & guide me from the file output command
thanks,
gardenair

Last edited by gardenair; 01-05-2012 at 07:26 AM.
 
Old 01-06-2012, 10:49 AM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by gardenair View Post
Thanks for the replies. Well I have tried
Code:
[root@localhost ~]# updatedb && locate smb.conf
/etc/pam_smb.conf
/etc/samba/smb.conf.rpmsave
Here I can see numbers of smb.cong file but these are not proper configurations file.
The .rpmsave file above should be the one that was saved when you updated the RPM.
Quote:
As you said
Code:
cd /path/to/makefile
grep "CONFIGFILE" makefile
I does not know where is the makefile path and it means grep smb.cong makefile these are not clear to me. For more information about samba folder,after extracting the compress file it is now in /home. kindly just explain & guide me from the file output command
The makefile path is wherever you uncompressed the Samba software...that would be, THE PLACE WHERE THE MAKEFILE IS. And if you type in the grep command, it will FIND that in the makefile, and TELL YOU where the config file is.

If you're having problems with things like this, it would be far better if you upgraded using the "yum update samba" command, or by getting someone else at your site to do this. Why are you compiling Samba from source, rather than using the packages?? And don't you have a backup of your system, which would include that config file????
 
Old 01-09-2012, 03:17 AM   #9
sKaar
Member
 
Registered: Jun 2006
Location: dartmouth, nova scotia
Distribution: slackware 12.1
Posts: 74

Rep: Reputation: 2
if you configure the prefix properly, the software will install in the correct place, but to test, you can use a different prefix like.
make install --prefix=somethingorother...
then you look in there to see where the file would have gone.

Last edited by sKaar; 01-09-2012 at 03:18 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make samba read updated smb.conf file without restarting samba anon091 Linux - Newbie 13 06-30-2021 04:43 AM
How to change default smb.conf to another location UltraSoul Linux - Software 3 04-24-2008 01:01 AM
Samba in Debian, smb.conf: smb passwd file = ?????????? henrnorl Linux - Software 1 10-06-2006 09:43 AM
can't edit or make changes to the smb.conf file! xsithlordx Linux - Newbie 3 12-10-2005 07:04 PM
please review my smb.conf and tell me how to make it more secure Lleb_KCir Linux - General 2 08-01-2004 01:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration