YASP - Yet another Samba post

I recently did this for myself.
I am not sure if it will be useful to anyone esle.
I want to share but have insecurites about it’s completeness.
I want to share but have insecurites about my memory and
most of this was typed out after many steps were completed.

I would VERY MUCH appreciate if one of our resident experts would
confirm these steps are correct and logical in the way they are presented here.

I am open to suggestions for changes/corrections/better ways to do this.

Thanks a bunch!

==========================================================

Install and configure Samba on EndeavourOS in a Workgroup (NON-DOMAIN) setup

  1. update EndeavourOS
    ----sudo pacman -Syu

  2. ensure admin/backup users have rwx permissions (I use facl further along in this example tutorial)
    ----create backup user (this is for MY NEEDS|most people can use their normal logon user)

  3. added user to backup folder path with full rxw permissions

  4. in no specific order: install samba | allow samba through firewall

I always do firewall first so as below:

FIREWALL PORTS

firewalld - EndeavourOS default firewall

[root@msrvr1 ~]# firewall-cmd --permanent --add-service=samba
[root@msrvr1 ~]# firewall-cmd --reload

UFW - example only-I do not use UFW at the moment

[root@msrvr1 ~]# ufw allow samba

Verify open ports after Samba starts (I did this after installing/configuring/starting samba)

~]# ss -tlnp | grep -E '(139|445)'

# Expected:
# LISTEN 0 50 0.0.0.0:139 ...
# LISTEN 0 50 0.0.0.0:445 ...
  1. INSTALL SAMBA

sudo pacman -Syu samba

  1. enable samba at boot

ensure samba is enabled to start at boot:

[root@msrvr1 ~]# systemctl enable --now smb
[root@msrvr1 ~]# systemctl enable --now nmb
Created symlink ‘/etc/systemd/system/multi-user.target.wants/nmb.service’ \u2192 ‘/usr/lib/systemd/system/nmb.service’.

  1. Configure the smb.conf

– I suggest the below URL’s smb.conf and then modify it for your needs, I made it my own after I shamelessly copied from here:

my smb.conf is below

--------------------------------------smb.conf below ------------------------

[global]
   workgroup = LOCAL.LAN
   server string = Samba File Server
   server role = standalone server

   # Protocol
   server min protocol = SMB2
   server max protocol = SMB3

   # Security
   security = user
   ntlm auth = ntlmv2-only
   restrict anonymous = 2

   # Logging
   log file = /var/log/samba/log.%m
   max log size = 50
   log level = 1

   # Performance
   socket options = TCP_NODELAY IPTOS_LOWDELAY
   read raw = yes
   write raw = yes
   use sendfile = yes
   aio read size = 1
   aio write size = 1

   # Apple/macOS compatibility (remove/leave commented out if not needed)

   #vfs objects = fruit streams_xattr
   #fruit:metadata = stream
   #fruit:model = MacSamba
   #fruit:posix_rename = yes
   #fruit:veto_appledouble = no

[Users]
   comment = User Share (Read Only)
   path = /mnt/media/media
   browseable = yes
   read only = yes
   guest ok = no
   valid users = natalie stephen michael
   #OR enter @users instead of a username to include the whole users group

#[backup -example of a share for a specific group]
   #comment = backup and restore
   #path = /srv/samba/engineering
   #browseable = yes
   #read only = no
   #valid users = @engineering #group name instead of username
   #create mask = 0664
   #directory mask = 0775
   #force create mode = 0664
   #force directory mode = 0775


[backupusr]
   comment = admin media srv
   path = /mnt/media/media
   browseable = yes
   read only = no
   valid users = bckadmin

--------------------------------------smb.conf above ------------------------

I create the shared folders using root.

~]$ su -
Password:
[root@linpc ~]# mkdir /path/to/shared/folder

I have a need to allow multiple users RWX permissions.
Using group permissions on the shared folder to achieve this.
I do this because I am going to run a media server (emby) and it requires ownership of the media folders it will be using.

[root@linpc ~]#setfacl -m g:bckadmin:rwx -R /path/to/folder
[root@linpc ~]#setfacl -m g:users:rx -R /path/to/folder

With the above the root user has rwx|my backup user has rwx and standard users have rx

use testparm to check your smb.conf for errors

testparm passed for me.


[root@msrvr1 ~]# testparm
Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
Weak crypto is allowed by GnuTLS (e.g. NTLM as a compatibility fallback)

Server role: ROLE_STANDALONE

Press enter to see a dump of your service definitions

# Global parameters
[global]
        log file = /var/log/samba/log.%m
        max log size = 50
        restrict anonymous = 2
        security = USER
        server min protocol = SMB2
        server role = standalone server
        server string = Samba File Server
        socket options = TCP_NODELAY IPTOS_LOWDELAY
        workgroup = LOCAL.LAN
        idmap config * : backend = tdb
        use sendfile = Yes


[Users]
        comment = UShare Media (Read Only)
        path = /mnt/media/media
        valid users = standard_user


[backupusr]
        comment = admin media srv
        path = /mnt/media/media
        read only = No
        valid users = bckadmin
[root@msrvr1 ~]#

If everything looks good samba services should start and you should start to see/access the shared folder from remote PC’s.

I would start manually before rebooting, and test access from a remote PC.
I am unsure how long the boot process will be delayed if it has issues trying to start samba.

[root@msrvr1 ~]#systemctl start smb.service
[root@msrvr1 ~]#systemctl start nmb.service

AND then verify:

[root@msrvr1 ~]# systemctl status smb
\u25cf smb.service - Samba SMB Daemon
     Loaded: loaded (/usr/lib/systemd/system/smb.service; enabled; preset: disabled)
     Active: active (running) since Fri 2026-11-27 12:23:23 EST; 8h ago
 Invocation: 9d441f689874427ba9f3198a9581eb6e
       Docs: man:smbd(8)
             man:samba(7)
             man:smb.conf(5)
   Main PID: 55875 (smbd)
     Status: "smbd: ready to serve connections..."
      Tasks: 4 (limit: 38187)
     Memory: 15.5G (peak: 16.9G)
        CPU: 25min 19.425s
     CGroup: /system.slice/smb.service
             \u251c\u250055875 /usr/bin/smbd --foreground --no-process-group
             \u251c\u250055878 "smbd: notifyd "
             \u251c\u250055879 "smbd: cleanupd"
             \u2514\u250056023 "smbd: client [192.168.xxx.xxx]"

AND

[root@msrvr1 ~]# systemctl status nmb
\u25cf nmb.service - Samba NMB Daemon
     Loaded: loaded (/usr/lib/systemd/system/nmb.service; enabled; preset: disabled)
     Active: active (running) since Fri 2026-11-27 12:23:34 EST; 8h ago
 Invocation: c7bc1b62608f49a09336541d24071ffa
       Docs: man:nmbd(8)
             man:samba(7)
             man:smb.conf(5)
   Main PID: 55886 (nmbd)
     Status: "nmbd: ready to serve connections..."
      Tasks: 1 (limit: 38187)
     Memory: 3.3M (peak: 4.6M)
        CPU: 292ms
     CGroup: /system.slice/nmb.service
             \u2514\u250055886 /usr/bin/nmbd --foreground --no-process-group

With the above, for the very first time ever, I setup and configured my samba server/shares without zero help form others.

This makes me very happy!

THANK YOU, once more to the extremely experienced and knowledgeable people in these forums who have given me so much help to learn more about Linux and the encouragement given to continue learning and finding resources to the point where I feel very comfortable doing
what I’ve done with samba.

This is the very first time I install, configured and made it work all on my own-using other peoples knowledge still but finding it on my own, knowing which knowledge to use and which to discard, a very important thing when dealing with samba Ive learned!
You could spend months following tutorials that people use when active directories are involved and that would leave you very frustrated and clueless as to what’s happening.

Been there/done that.

The patience I have found in these thread is worth it’s weight in gold for sure.

I have stress and attention disorders and some ideas that do not fit the norm and even when mistakenly posting some of these ideas offhandedly, without thinking about it of course, the post was removed and not one person said anything to me about it.
I was just given a reminder to read the forum rules.

TYVM to everyone-even that admin who correctly called out my “against the rules of posting” POST!