Environment: CentOs6.5
Samba is a remote communication service that enables the operation of files on a Linux server in a Windows environment, after all, for most people, the developer of the win editor such as Sublime, Vscode, is more efficient than vim.
1. Installation
[Email protected] samba]# yum-y install samba Samba-common samba-client
You can check the installation situation:
# Rpm-qa | grep Samba
The path to Samba is under:/ETC/INIT.D/SMB,
The command Start/stop/restart can be used for the corresponding operation
You can also use
Service SMB Status
To see the current Samba working status
But we want Samba to be able to boot from start-up at boot time and execute this command
# chkconfig--level SMB on
2. Configuration
Open configuration file:/etc/samba/smb.conf
650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M02/8D/FD/wKioL1iysJqASVREAAAjzxcWVuM242.png "title=" 1.png "alt=" Wkiol1iysjqasvreaaajzxcwvum242.png "/>
This can actually do a lot of settings, but I just want to achieve the entire user directory sharing, so just a simple modification:
650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M02/8D/FF/wKiom1iysXughlqPAAAcejoY6qc464.png "title=" 2.png "alt=" Wkiom1iysxughlqpaaacejoy6qc464.png "/>
3. Add Users
With the command
Smbpasswd-a XX (user name)
Then enter the password
4. Connection
Windows File Manager Address bar input \\xx.xx.xx.xx
You will then be prompted to enter your user name and password
If this step does not respond, you should consider the Linux server firewall
Service Iptables Stop
Linux Installation and Configuration Samba