1. Use the yum tool for installation on a machine that can be connected to the internet. If the machine is not connected to the Internet, mount the system disk for installation.
# Yum install samba-client
The dependent packages samba-common, samba-winbind-clients, and libsmbclient are automatically installed.
2. Check the installation status.
# Rpm-qa | grep samba
3. Installation package description
Samba-common-4.1.1-37.el7_0.x86_64 // mainly provides the setup file and setup file syntax validation program testparm for the samba Server
Samba-client-4.1.1-37.el7_0.x86_64 // client software, mainly provides linux host as the client, the required tool instruction set
Samba-libs-4.1.1-37.el7_0.x86_64
Samba-4.1.1-37.el7_0.x86_64 // server software, mainly providing samba server daemon, sharing documents, log rotation, boot default options
After the Samba server is installed, the configuration file directory/etc/samba and other samba executable command tools,/etc/samba/smb will be generated. conf is the core configuration file of samba,/usr/lib/systemd/system/smb. service is the startup file
4. Start the Samba Server
# Systemctl enable smb. service
# Systemctl start smb. service
5. Set permissions
To enable anonymous users to download or upload shared files, grant the directory the "nobody" permission.
# Chown-R nobody: nobody samba/
Install the Samba service on CentOS7