[Samba] How to determine Samba Installation directory

Mark Foley mfoley at novatec-inc.com
Thu May 1 01:50:26 UTC 2025


Excellent suggestion! I forgot about that. I get:

# smbd -b | egrep "LOCKDIR|STATEDIR|CACHEDIR|PRIVATE_DIR"
   LOCKDIR: /var/cache/samba
   STATEDIR: /var/lib/samba
   CACHEDIR: /var/cache/samba
   PRIVATE_DIR: /var/lib/samba/private

In my response to Roland I figured using --prefix /var/lib/samba

That looks correct, right? I don't suppose the /var/cache directories figure into
the --prefix modifier.

THX --Mark

On Wed Apr 30 17:03:50 2025 Peter Smode <psmode at kitsnet.us> wrote:
>
> 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