LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 03-06-2003, 11:14 AM   #1
heathpitts
Member
 
Registered: Feb 2003
Location: Florence, AL
Distribution: Debian
Posts: 157

Rep: Reputation: 30
default program directories


I installed redhat 8 on my desktop computer. I have installed mandrake 7.1 and 8.1 on other computers and used samba on all of them. I then installed the updated samba from source code to the rh8 machine. My only problem is this. Why did it make multiple locations for smb.conf? It is in /etc/smb.conf /etc/samba/smb.conf and /usr/local/samba/lib/smb.conf. I thought it always put that file in /etc/smb.conf. Can someone explain to me what the default directories are for program installs under linux? Is there a way to change this. The only reason I am asking is that even though the new latest samba install went to /usr/local/samba it is looking at the /etc/smb.conf and not the one at /usr/local/samba/lib/smb.conf.

Thanks,
 
Old 03-06-2003, 02:43 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Programs installed from RPMs come to /bin, /sbin, /usr/bin and /usr/sbin (+XFree directories). Compiled by you - usually to /usr/local/bin (or /usr/local/sbin). Usually the ./configure script accepts --prefix=directory option that allows you to specify the directory it should install to (for example: ./configure --prefix=/usr, then the binaries would go to /usr/bin or /usr/sbin).

Many programs with a configuration files install it to /etc. But not all. Especially XFree apps use different directories. Samba searches /etc/smb.conf by default. The configuration file path can be set to a different value (I don't remember now how and don't have Samba copy to check...).
 
Old 03-06-2003, 05:30 PM   #3
JStew
Member
 
Registered: Oct 2002
Location: North Atlanta
Distribution: LFS
Posts: 229

Rep: Reputation: 30
DO NOT USE RPM'S--THEY ARE EVIL! :-)
 
  


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
DISCUSSION: Using Windows Directories for Default Apache 2 Web Site RavenLX LinuxAnswers Discussion 0 02-09-2005 12:59 PM
Apache cgi-bin default directories Mankind75 Mandriva 1 07-05-2004 09:22 AM
can you set a default umask for only certain directories? BrianK Linux - General 3 06-14-2004 09:02 PM
kde and qt default directories in RH9 jza Red Hat 1 01-03-2004 02:25 AM
.//program-build directories trub Linux From Scratch 1 02-16-2002 11:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:45 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