Samba
Description⚓︎
Samba is an implementation of SMB protocol. It serves as a general purpose file server in my LAN
Note
This service is deployed on multiple machines
Bare Metal⚓︎
Basic info⚓︎
Basic info with official links
- Package:
samba
- Official Wiki: Official Samba Wiki
- Arch Wiki: Arch Wiki for Samba
smb.conf⚓︎
Warning
Change interface name in interfaces
of [global]
section
Run ip a
to find your ethernet port name
```
[global] workgroup = WORKGROUP min protocol = SMB2 client min protocol = SMB2 server string = Media SMB server role = standalone server log file = /usr/local/samba/var/log.%m max log size = 50 dns proxy = no
[mdroot] comment = Sharing root over samba for authed users path = / force user = putin force group = putin create mask = 0664 force create mode = 0664 directory mask = 0775 force directory mode = 0775 public = no writable = yes browsable = yes
[mdmnt] comment = Sharing MergerFS Folder publicly with no read-write path = /mnt force user = putin force group = putin create mask = 0664 force create mode = 0664 directory mask = 0775 force directory mode = 0775 public = yes writable = no browsable = yes ```
Setup⚓︎
-
Install samba package
-
Copy smb config
-
Set smb password for user
Bash -
Start and enable smb
-
To restart service:
Info
To mount smb share, refer to fstab guide