...
Code Block |
---|
... # share [share] path = /media/share valid users = shareuser writeable = yes browseable = yes create mask = 0644 directory mask = 0755 force user = shareuser ... |
Add rules to allow samba traffic through firewall
On your network you'll need to allow samba traffic through your server firewall. If you're using UFW
then you can add the requisite rules by executing the following commands. The below assumes an internal network address range of 10.0.0.0 → 10.0.0.255 (or 10.0.0.0/24 CIDR) so you'll need to change to suit your internal network if it differs:
Code Block |
---|
sudo ufw allow proto udp to any port 137 from 10.0.0.0/24
sudo ufw allow proto udp to any port 138 from 10.0.0.0/24
sudo ufw allow proto tcp to any port 139 from 10.0.0.0/24
sudo ufw allow proto tcp to any port 445 from 10.0.0.0/24 |
Restart smbd
For your changes to take effect, we need to restart samba.
...
- https://unix.stackexchange.com/questions/206309/how-to-create-a-samba-share-that-is-writable-from-windows-without-777-permission
- https://www.techrepublic.com/article/how-to-set-up-quick-and-easy-file-sharing-with-samba/
- https://askubuntu.com/questions/51951/set-default-group-for-user-when-they-create-new-files
- https://www.ghacks.net/2010/12/29/allow-samba-through-your-linux-firewall-with-ufw/
Related articles
Content by Label | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...