Created
July 4, 2023 23:12
-
-
Save fullmetalbrackets/cbf4194479531b2ea8b1e831875cc107 to your computer and use it in GitHub Desktop.
Samba config to access share without login
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create new user in Linux: sudo adduser public (give it any password, it won't be used anyway) | |
# Give read/write permissions: sudo chmod ugo+rw /home/public | |
[global] | |
workgroup = WORKGROUP | |
server string = Samba %v %h | |
# The below should make transfers faster and is optional | |
strict allocate = Yes | |
allocation roundup size = 4096 | |
read raw = Yes | |
server signing = No | |
write raw = Yes | |
strict locking = No | |
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=131072 SO_SNDBUF=131072 | |
min receivefile size = 16384 | |
use sendfile = Yes | |
aio read size = 16384 | |
aio write size = 16384 | |
[public] | |
comment = Public Samba Share | |
path = /home/public | |
browseable = yes | |
writeable = yes | |
read only = no | |
public = yes | |
guest only = yes | |
force user = public | |
force group = public | |
force create mode = 0666 | |
force directory mode = 0777 | |
# Check config file syntax: testparm | |
# Restart Samba services: sudo systemctl smbd nmbd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment