Code in this video_Samba – Share a Folder with Read and Write Access

✳️ Replace the highlighted information with your own


sudo adduser --no-create-home --disabled-login samba_every

[Share-Everyone]
path = /Samba/Share-EveryOne
guest ok = no
browseable = yes
read only = no
writable = yes
valid users = samba_every
create mask = 0664
directory mask = 0775
force user = samba_every

Parameter explanation:

  • [Share-Everyone] – The display name of the shared folder when accessed from Windows.
  • path = /Samba/Share-EveryOne – The actual directory path on the Linux server.
  • guest ok = no – Disables guest access, users must log in with valid Samba credentials.
  • browseable = yes – Makes the share visible when browsing the network from Windows.
  • read only = no – Allows write access to the shared folder.
  • writable = yes – Same as read only = no, ensures the folder is writable.
  • valid users = samba_every – Only the samba_every user can access this share.
  • create mask = 0664 – Default permissions for newly created files (owner & group can read/write, others can only read).
  • directory mask = 0775 – Default permissions for new directories (owner & group can read/write/execute, others can read/execute).
  • force user = samba_every – Forces all file operations to be owned by samba_every, avoiding permission conflicts when multiple users access the share.

Read more

Leave a Reply

Your email address will not be published. Required fields are marked *