From Fedora Project Wiki
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
== How to create a SAMBA share == | == How to create a SAMBA share == | ||
<pre> | |||
sudo dnf install samba | |||
sudo systemctl enable smb --now | |||
firewall-cmd --get-active-zones | |||
sudo firewall-cmd --permanent --zone=FedoraWorkstation --add-service=samba | |||
sudo firewall-cmd --reload | |||
mkdir ~/share | |||
sudo smbpasswd -a user | |||
sudo vi /etc/samba/smb.conf | |||
... | |||
[share] | |||
comment = My Share | |||
path = /home/user/share | |||
writeable = yes | |||
browseable = yes | |||
public = yes | |||
create mask = 0644 | |||
directory mask = 0755 | |||
write list = user | |||
</pre> |
Revision as of 12:47, 9 January 2020
sudo dnf install samba sudo systemctl enable smb --now firewall-cmd --get-active-zones sudo firewall-cmd --permanent --zone=FedoraWorkstation --add-service=samba sudo firewall-cmd --reload mkdir ~/share sudo smbpasswd -a user sudo vi /etc/samba/smb.conf ... [share] comment = My Share path = /home/user/share writeable = yes browseable = yes public = yes create mask = 0644 directory mask = 0755 write list = user