Mount command mount in CentOS windows7 shared directory

Source: Internet
Author: User

1 Create a new user on the ip: Windows machine. Here new user name: MyShare, Password: myshare123.

Select the "Computer" right mouse button to select "Admin", Local Users and groups, user = "right button, new user."

3 View the MyShare domain. In turn: Control Panel \ All Control Panel items \ user accounts. Manage users. You can see the fields as: jszx-yh-59.

4 Create a new shared directory. Create a new mytest directory (F:\mytest) on the F disk. Select MyTest. Right-click. Select Properties. Click on Share.

5) Find the user.

6) Click on the location selected: jszx-yh-59 domain.

7 Input MyShare user.

8) Set MyShare to MyTest read and write permissions. Click on Share.

9 mount the MyTest directory on ip: Linux.
# Mkdir/mnt/mytest

# Mount-o username=myshare,password=myshare123//


Because the mount command can only be used by users with root permissions. The default owner and group for the mounted folder are root and the permissions cannot be changed through the chmod command.

1 Use the Mount command to assign owner and group to the mounted shared folder. The UID represents the user. GID Representation Group

# mount-o Username= "MyShare", password= "myshare123", Uid=dev,gid=dev//

2 Write permission for the group that the Mount shared folder is in.

# mount-o Username= "MyShare", password= "myshare123", uid=dev,gid=dev,dir_mode=0777//

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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: and provide relevant evidence. A staff member will contact you within 5 working days.