Setting up a Samba server
Samba is a free software that implements the SMB protocol on Linux and UNIX systems. Consists of the server and the client program.
1. Install the Samba server:
#yum Install Samba-y
2. go to config file directory:
#cd/etc/samba/
3. Edit the Smb.cof file
#vim SMB.COF
4. You can filter out some comments by grep by: # spaces: Start with
#grep–v"#"SMB.COF |grep–v"∧$"|grep–v"∧;"
5. Restart the service
#/etc/init.d/smb restart
6. Native Firewall shutdown
#/etc/init.d/iptables stop
So we successfully built the Samba server and entered the Start menu to enter the server IP.
Note The configuration file is detailed:
[global]
workgroup = mygroup // The work required to set up samba server is composed of
Server string = Samba server Version%v //Samba The version number
Security = Share // Access does not require a user name and password
Passdb backend = Tdbsam
Load printers = yes
Cups options = raw
[data] // shared directory
comment=temporary file space // Description of the share, any word character
path=/data Span style= "line-height:150%;font-family: ' Microsoft Jas Black ', ' sans-serif '; color: #92D050; background: #FFFFFF;" > // path of the shared directory
Read only=no // Is it read only? no readable writable yes: Read-only
Public=yes // shared
This article is from the "Success" blog, make sure to keep this source http://maxiaotian.blog.51cto.com/10824115/1715981
Setting up a Samba server