Samba Mounts Windows shared folders

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.