SAMBA Server for Linux to windows file transfer

Install samba through yum

yum install samba samba-client

Add samba service to firewall

firewall-cmd –permanent –add-service=samba

firewall-cmd –reload

Add linux user to samba

useradd -s /sbin/nologin cpm

smbpasswd -a cpm

Install cifs utilities

yum install cifs-utils

add a directory and mount it with a windows share.

mkdir /opt/cpmshare

mount -t cifs -o username=fahmi //192.168.199.66/smb /opt/cpmshare

Leave a comment