First reprint a piece of article CentOS under Yum install configuration Samba
Address http://blog.csdn.net/linglongwunv/article/details/5212875
Encounter Issue 1 # smbpasswd-a username Create user unsuccessful
Failed to add entry for user usernamessss.
Resolve the creation of the system administrator, that is, when logging on to the server. A system administrator AAA is required to create a Samba administrator AAA
Connect to a Samba server from a Windows client, which is a way for clients to use Samba to refer to this article http://blog.csdn.net/linglongwunv/archive/2010/01/19/5212919.aspx
Problems encountered 2 Windows cannot access \\192.168.100.126
Cause there is a firewall execution command # service iptables Stop
Link successful
Now I want to use Windows as a server to share files, Linux as a client access
First create a folder on Windows Server, right-----Share--and select shared users--OK
Then install the client program on the Linux client
Because the server side and client are not a program, install the client program first
# yum-y Install samba-client
Access Windows Shared Folders command
# smbclient//192.168.100.126/Directory name-u user name% password
Smb:\>ls This explains, you can use commands to view the properties of a shared folder
Mount Windows shared Folders
# mkdir-p/www/test Create directory
# mount-t cifs-o username=root,password=123456//192.168.100.126/samba_test/www/test Mount
Middle Encounter an error mount:unknown filesystem type ' SMBFS '
Change ' Smbfs ' to CIFS.
It started with mount-t smbfs-o username=xxx,password=xxx//hostname/dir/mnt/tmp .
Reference http://blog.csdn.net/chinalinuxzend/article/details/3460385
Samba Mounts Windows shared folders