Linux mount Windows shared directory

Source: Internet
Author: User

Set up a shared directory in Windows and add permissions to users

To mount the file share of the window system to the Linux CentOS directory, proceed as follows:

1. First share the directories that need to be mounted under Windows.
2, make sure that Linux and Windows are in the same LAN.
3. Create a directory below Linux that needs to be mounted.
4. Mount using the Mount command.

Mount-t Cifs-o username=test,password=test,uid=weblogic,gid=weblogic//172.216.176.36/test/var/www/html/mount

Use the Mount command to map the window's directory to the Linux directory parameter description:

Username: is the window System login user name

Password:window System Login Password

172.216.176.36/test: Set the path to the Windows shared directory, IP plus share file name

/var/www/html/mount: Mount the directory under Linux

Mount Common error:

Mount error = Permission denied

Refer to the Mount.cifs (manual page (E.g.man mount.cifs)

Make sure the input command is the same as the above mount.

Then check that the user name and password for window are correct.

To cancel the Mount method:

Umount/var/www/html/mount

Linux mount Windows shared directory

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.