SAMBA Server Configuration in Redhat Linux 8 and Redhat 7
=> Samba provides server and client software to allow file sharing between Linux and Windows machines.
=>Default Port : "445"
=>Daemon : "smb"
=>Install SAMBA Server
=> #yum install samba* -y
=>Enable the samba service
=> #systemctl enable smb
=>Now start the service
=> #systemctl start smb
=>Disable the firewall or add the samba port
=> #systemctl stop firewalld
=> #systemctl disable firewalld
=>Create directory for sharing
=> #mkdir shared_folder
=>Assign full permission
=> #chmod 777 shared_folder/
=>Create users
=> #adduser sam
=> #adduser tom
=>Make users as "samba" users
=> #smbpasswd -a sam
=> #smbpasswd -a tom
=> Configure the samba file
=> #vim /etc/samba/smb.conf
=>Add the following lines :
=>Save and exit
=>Restart samba services
=> #systemctl restart smb
=>Check configuration
=> #testparm
=>Now run a command for share the directory
=> #chcon -R -t samba_share_t /shared_folder
=>Check the linux server ip and go to windows machine
=> #ifconfig |less
=>Go to windows machine and access the linux server folder
Comments
Post a Comment
If you have any doubts, Please let me know