Objective: To access the centos 6.5 root user desktop/zs folder in Windows 7
1. Install samba
Yum install-y samba *
2. Configure samba
# First back up the default configuration file
CP/etc/samba/smb. conf/etc/samba/smb. conf. Backup
# Changing the configuration file
VI/etc/samba/smb. conf
For simplicity, use the following content to overwrite the original content.
# Configuration section[Global]
Workgroup = workgroup
# Working Group (you can set it yourself)
Server String = samba
# Set the Samba server name [You can change it yourself]
NetBIOS name = zsss
# Set the server access alias [You can change it by yourself]
Security = user
# Set the Samba server security level to user, that is
Access with account and password
[Ntopng]
# Shared directory seen in Windows Network neighbors
Name
Path =/root/desktop/zs
# Shared file address
Public = No
# Do not disclose Directories
Writeable = Yes
# The shared directory can be read and written.
Valid user = root
# Only root users are allowed to access
Browseable = Yes
Build a Samba server in centos 6.5