The share definition is located at /var/lib/samba/usershares when you create the share with the Nautilus GUI interface. The main Samba file share server (smbd and nmbd) is configured at /etc/samba/smb.conf. Root created shares are also configured at /etc/samba/smb.conf.

root created shares = /etc/samba/smb.conf
usershares = /var/lib/samba/usershares 
Answer from BAB1 on askubuntu.com

The share definition is located at /var/lib/samba/usershares when you create the share with the Nautilus GUI interface. The main Samba file share server (smbd and nmbd) is configured at /etc/samba/smb.conf. Root created shares are also configured at /etc/samba/smb.conf.

root created shares = /etc/samba/smb.conf
usershares = /var/lib/samba/usershares 
Answer from BAB1 on askubuntu.com
🌐
Samba
samba.org › samba › docs › current › man-html › smb.conf.5.html
smb.conf
The registry configuration can be accessed with tools like regedit or net (rpc) registry in the key HKLM\Software\Samba\smbconf. More conveniently, the conf subcommand of the net(8) utility offers a dedicated interface to read and write the registry based configuration locally, i.e. directly accessing the database file, circumventing the server.
🌐
Ubuntu
ubuntu.com › server › docs › how-to › samba › file-server
Set up Samba as a file server - Ubuntu Server documentation
2 weeks ago - Finally, restart the Samba services to enable the new configuration by running the following command: $ sudo systemctl restart smbd.service nmbd.service ... Once again, the above configuration gives full access to any client on the local network. For a more secure configuration see Share Access Control. From a Windows client you should now be able to browse to the Ubuntu file server and see the shared directory.
Discussions

I installed samba, but the samba.conf file does not exist
Hi everyone, I have installed samba, as well as the kde packages for folder sharing, but the smb.conf file in /etc/samba does not exist. Neither on eos nor on arch, the file is not present. Where can I fix it? I have two other distros on my PC, makulu linux and openmamba, the smb.conf file ... More on forum.endeavouros.com
🌐 forum.endeavouros.com
19
1
June 16, 2024
Is there a best practices guide for configuring samba? (Getting the 0x8007035 code on windows)
If you can ever enumerate Windows SMB shares in a GUI Linux file manager, please drop me a note. More on reddit.com
🌐 r/linuxquestions
10
4
February 18, 2022
How do i make a Samba server?
this is the guide that helped me the most https://linuxconfig.org/how-to-set-up-a-samba-server-on-debian-10-buster More on reddit.com
🌐 r/linux4noobs
21
54
December 23, 2020
Samba is kicking my ass. Does someone have a "perfect" setup file that I could copy to ensure it will work? What does it take to get samba working?
Okay, this is a config for a simple single server that's not a member of an AD domain and is doing it's own internal username/password verification. It's taken from my home server, but it should be relevant for your needs. Some of the entries should no longer be needed (TCP_NODELAY for example) however I'm a believer of "if it aint broke..." You'll want to modify the share sections for what your shares are, and also modify the security modes etc to something a bit more secure once you've confirmed it's working. Also don't forget to run "smbpasswd" for each user that you want authenticated access for... [global] workgroup = CORP netbios name = FILESERVER server string = Linux Samba File Server map to guest = Bad User null passwords = Yes guest account = guest wins support = Yes client NTLMv2 auth = Yes log file = /var/log/samba/log.%m max log size = 50 socket options = TCP_NODELAY IPTOS_LOWDELAY disable spools = Yes show add printer wizard = No preferred master = No domain master = No idmap uid = 15000-20000 idmap gid = 15000-20000 winbind use default domain = Yes dont descend = ./lost+found use sendfile = yes hide unreadable = yes hide files = /lost+found/ cache directory = /var/run/samba/locks/cache directory name cache size = 500 os level = 0 [Homes] comment = Home Directories read only = No hide files = /.*/lost+found/ browseable = No browsable = No [Fileshare] comment = A basic file share path = /srv/fileshare write list = user1, user2, user3, @group1, @group2 force create mode = 0666 force security mode = 0666 force directory mode = 0777 force directory security mode = 0777 guest ok = Yes hide special files = Yes hide files = /.*/lost+found/ dont descend = /lost+found More on reddit.com
🌐 r/linux
38
53
January 26, 2013
Find elsewhere
🌐
ArchWiki
wiki.archlinux.org › title › Samba
Samba - ArchWiki
May 26, 2026 - To share files through Samba, see #Server section; to access files shared through Samba on other machines, please see #Client section. Install the samba package. Samba is configured in the /etc/samba/smb.conf configuration file, which is extensively documented in smb.conf(5).
🌐
EndeavourOS
forum.endeavouros.com › general system › newbie
I installed samba, but the samba.conf file does not exist - Newbie - EndeavourOS
June 16, 2024 - Hi everyone, I have installed samba, as well as the kde packages for folder sharing, but the smb.conf file in /etc/samba does not exist. Neither on eos nor on arch, the file is not present. Where can I fix it? I have t…
🌐
Delinea
docs.delinea.com › online-help › server-suite › integrate › samba › config › modify.htm
Modifying the Samba smb.conf Configuration File | Delinea
The Samba configuration file, /etc/samba/smb.conf, defines important parameters for Samba-based file sharing.
🌐
O'Reilly
oreilly.com › openbook › samba › book › ch02_04.html
[Chapter 2] 2.4 A Basic Samba Configuration File
The key to configuring Samba is its lone configuration file: smb.conf. This configuration file can be very simple or extremely complex, and the rest of this book is devoted to helping you get deeply personal with this file. For now, however, we'll show you how to set up a single file service, which will allow you to fire up the Samba daemons and see that everything is running as it should be.
🌐
Aplawrence
aplawrence.com › BDD › samba-guide.html
AN ANNOTATED GUIDE TO SAMBA CONFIGURATION
June 20, 2010 - Virtually everything that Samba does in a running environment is controlled by an ASCII configuration file called smb.conf. The exact location of this file may vary from one system to another, and in fact, can be specified by the command line used to start Samba.
🌐
Linuxier
linuxier.com › what-is-smb-conf-file-and-how-to-use-it
What is smb.conf File and How to Use It? - Linuxier
May 19, 2024 - Location: The smb.conf file is typically located in the /etc/samba/ directory on Unix/Linux systems. Purpose: It defines the configuration settings for the Samba server, including shared resources, authentication, and access control.
🌐
Cockpit Project
cockpit-project.org
Cockpit Project — Cockpit Project
See your server in a web browser and perform system tasks with a mouse. It’s easy to start containers, administer storage, configure networks, and inspect logs.
🌐
Nextcloud
nextcloud.com › home › files
Nextcloud Files - Open source file sync and share platform
January 4, 2022 - Powerful encryption capabilities and a built-in rule-based File Access Control. Complemented by strong password policies, brute-force protection, ransomware protection and more. Access data from FTP, Windows Network Drive, SharePoint, NFS, Object storage, … Simple configuration and integration lower costs and decrease risk while leveraging existing IT investments.
🌐
Red Hat
redhat.com › en › blog › samba-file-sharing
How to share files with Samba
December 9, 2025 - Create a directory on the server to hold your shared files and folders, and change the SELinux context to samba_share_t: $ sudo mkdir /sambashare $ sudo chcon -t samba_share_t /sambashare/ To configure shares and users, edit the /etc/samba/smb.conf file.
🌐
Cyberduck
cyberduck.io
Cyberduck | Libre server and cloud storage browser for Mac and Windows with support for FTP, SFTP, WebDAV, Amazon S3, OpenStack Swift, Backblaze B2, Microsoft Azure & OneDrive, Google Drive and Dropbox
Read settings from your existing OpenSSH configuration. With interoperability for ownCloud, box.com, Sharepoint and BigCommerce and many other WebDAV servers. TLS mutual (two-way) authentication with client certificate. Access Windows File Shares or a Samba Linux Server.
🌐
Scribd
scribd.com › document › 485354092 › smb-conf
Samba Configuration Overview | PDF | Domain Name System | Computer Networking
smb.conf - Free download as PDF File (.pdf), Text File (.txt) or read online for free. This document is the main configuration file for Samba, an open source software implementation of the Server Message Block (SMB) protocol.
🌐
Linuxbrainbox
linuxbrainbox.com › how-to-install-and-configure-a-samba-server
How to Install and configure a SAMBA Server - Linuxbrainbox
November 19, 2013 - ———————Next provide a name for samba server, search for “server string”————–