1. first, in the Windows 7 shared folder, set account permissions 2. test whether shared folders can be accessed. 3. install cifs or smtfs in linux. you can find the full name of the package in yumsearchcifs and install the package. 4. I used cifs to go to moun, so I only installed the cifs-utils.x86_645. use the mount command:
1. first, in the windows 7 shared folder, set account permissions
2. test whether shared folders can be accessed.
3. install cifs or smtfs in linux. you can find the full name of the package in yum search cifs and install the package.
4. I used cifs to go to moun, so only the cifs-utils.x86_64 is installed
5. run the mount command:
[Plain]View plaincopy
- Sudo mount-t cifs // pc machine name/Templates/mnt/Templates/-o username = jack
After the mount is successful, you can use root or sudo to access the folder for read/write (the prerequisite is shared folder, and the read/write permission has been set)
6. if you want to assign the read/write permission to a specified linux user, you need to add two parameters.
[Plain]View plaincopy
- Sudo mount-t cifs // pc machine name/Templates/mnt/Templates/-o username = jack, gid = 501, uid = 501
After mounting is successful, you can use the specified user to read and write data.