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


=>Enter user id and password then you will see the "shared_folder"


=>As per the permissions you can read write edit the file or you can change the user permissions.





Comments

Popular posts from this blog

How to configure Mail Server in Redhat Linux

interview Questions on User Management in Linux

Kernel and Module Interview Questions