[Samba] How to determine Samba Installation directory

Peter Smode psmode at kitsnet.us
Wed Apr 30 21:03:30 UTC 2025


The instructions at https://wiki.samba.org/index.php/Setting_up_Samba_as_an_Active_Directory_Domain_Controller#Only_Applicable_if_Samba_was_Previously_Installed can be helpful:

# smbd -b | egrep "LOCKDIR|STATEDIR|CACHEDIR|PRIVATE_DIR"
  LOCKDIR: /usr/local/samba/var/lock/
  STATEDIR: /usr/local/samba/var/locks/
  CACHEDIR: /usr/local/samba/var/cache/
  PRIVATE_DIR: /usr/local/samba/private/



-- Peter

> On Apr 30, 2025, at 4:40 PM, Jeffrey Walton via samba <samba at lists.samba.org> wrote:
> 
> On Wed, Apr 30, 2025 at 3:41 PM Mark Foley via samba
> <samba at lists.samba.org> wrote:
>> 
>> I'm building Samba from a scratch download from samba.org.  One of the ./configure
>> options is --prefix, which directs where to install the files.
>> 
>> The "default" is /usr/local/samba, but from experience I know my distro does not
>> put the files there. There is nothing in either my /usr/lib/samba or
>> /usr/local/samba.
>> 
>> How can I determine where my current --prefix directory is?
> 
> If you have a config.site, then the default installation directories
> are taken from it. However, once ./configure is run, you often have a
> *.pc file that provides the directories.
> 
> Also see bug reports like <https://bugzilla.redhat.com/show_bug.cgi?id=1510073>.
> 
> Jeff
> 
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba


More information about the samba mailing list