Samba Share Fedora 20

Install required packages :

yum install samba samba-common samba-client cups-lib system-config-samba

Make a shared Directory :

In my case, I did mount an external hard drive at /mnt/usbDrive , which I wanted to be able to share to my Home Network.

mkdir /mnt/usbDrive && cd /mnt/

Now, configure SELINUX so that the share can be read and written .

semanage fcontext -a -t samba_share_t "usbDrive(/.*)?" restorecon -R -v usbDrive/

Next step is to allow the connection through firewall :

firewall-cmd --permanent --add-serivce=samba firewall-cmd --permanent --add-service=samba-client

Now edit the samba configuration file and create your share , mine for example is :

[amit] comment = amit's Stuff path = /mnt/ valid users=amit guest ok = no read only=no writable=yes

Now create a samba user forĀ  accessing the private share :

useradd -c "Amit for Samba" -s /bin/false amit smbpasswd -a amit

Now Enable and start samba services :

systemctl start smb.service systemctl start nmb.service systemctl enable smb.service systemctl enable nmb.service

Now you can access the share form your windows machine :

[\hostname](file://\hostname)** or ip**