Samba/files: Difference between revisions

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
Created page with "{{fmt/title|files used by Samba|at least on Ubuntu}} ==known config files== * '''smb.conf''': the Samba configuration file * '''smbusers''': the Samba users file ** I..."
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:
==known config files==
==known config files==
* '''[[smb.conf]]''': the Samba configuration file
* '''[[smb.conf]]''': the Samba configuration file
* '''[[smbusers]]''': the Samba users file
* '''[[smbusers]]''': the Samba users file - seems to be only for earlier versions; now replaced with more structured storage
** I currently don't know where this is kept.
==file structure==
==file structure==
* '''/etc/samba/'''
* '''/etc/samba/'''
** ...'''[[smb.conf]]''': the Samba configuration file
** ...'''[[smb.conf]]''': the Samba configuration file
** ...'''gdbcommands''': very short file, no idea what it does
** ...'''gdbcommands''': very short file, no idea what it does
* '''/usr/share/samba/''': seems to be setup and executable data
** ...'''[[smb.conf]]''': a sample, not actual config
* '''/run/samba''': seems to be runtime data?
* '''/run/samba''': seems to be runtime data?
* '''/sbin/''': general binary folder, including the following Samba executables (which are probably for internal use only):
* '''/sbin/''' is a symbolic link to '''/usr/sbin/'''.
* '''/usr/bin/''': general binary folder, including the following Samba executables:
** ...'''smb2-quota'''
** ...'''smbcacls'''
** ...'''smbclient'''
** ...'''smbcontrol'''
** ...'''smbcquotas'''
** ...'''smbget'''
** ...'''smbinfo'''
** ...'''smbpasswd'''
** ...'''smbspool'''
** ...'''smbstatus'''
** ...'''smbtar'''
** ...'''smbtree'''
* '''/usr/sbin/''': system binary folder, including the following Samba executables (which are probably for internal use only):
** ...'''samba'''
** ...'''samba'''
** ...'''samba_dnsupdate'''
** ...'''samba_dnsupdate'''
Line 19: Line 30:
** ...'''samba_spnupdate'''
** ...'''samba_spnupdate'''
** ...'''samba_upgradedns'''
** ...'''samba_upgradedns'''
* '''/usr/share/samba/''': seems to be setup and executable data
** ...'''[[smb.conf]]''': a sample, not actual config
* '''/var/lib/samba/'''
** ...'''private/'''
*** ...'''passdb.tdb''': presumably, the password database
*** ...'''secrets.tdb'''
** ...'''usershares/''': every share has its own text-file for configuration
* '''/var/log/samba/''': where the logfiles go
** ...'''log.{{fmt/arg|name}}''': log of access attempts from remote machine named {{fmt/arg|name}}
** ...'''log.{{fmt/arg|IP address}}''': log of access attempts from {{fmt/arg|IP address}} (not sure if this excludes named machines or duplicates the same log entries)

Latest revision as of 15:10, 16 September 2024

files used by Samba
at least on Ubuntu

{{#set: page title=files used by Samba }}

known config files

  • smb.conf: the Samba configuration file
  • smbusers: the Samba users file - seems to be only for earlier versions; now replaced with more structured storage

file structure

  • /etc/samba/
    • ...smb.conf: the Samba configuration file
    • ...gdbcommands: very short file, no idea what it does
  • /run/samba: seems to be runtime data?
  • /sbin/ is a symbolic link to /usr/sbin/.
  • /usr/bin/: general binary folder, including the following Samba executables:
    • ...smb2-quota
    • ...smbcacls
    • ...smbclient
    • ...smbcontrol
    • ...smbcquotas
    • ...smbget
    • ...smbinfo
    • ...smbpasswd
    • ...smbspool
    • ...smbstatus
    • ...smbtar
    • ...smbtree
  • /usr/sbin/: system binary folder, including the following Samba executables (which are probably for internal use only):
    • ...samba
    • ...samba_dnsupdate
    • ...samba_downgrade_db
    • ...samba-gpupdate
    • ...samba_kcc
    • ...samba_spnupdate
    • ...samba_upgradedns
  • /usr/share/samba/: seems to be setup and executable data
    • ...smb.conf: a sample, not actual config
  • /var/lib/samba/
    • ...private/
      • ...passdb.tdb: presumably, the password database
      • ...secrets.tdb
    • ...usershares/: every share has its own text-file for configuration
  • /var/log/samba/: where the logfiles go
    • ...log.<name>: log of access attempts from remote machine named <name>
    • ...log.<IP address>: log of access attempts from <IP address> (not sure if this excludes named machines or duplicates the same log entries)