1. share a folder in Windows 7 (1) create a user: devin, password: admin123 (2) create a folder on the E disk, share, and set sharing to user devin, and grant the permission to read and write data. 2. create a directory share in linux and create it in/data. The full directory is/data/share 3. Mount share 1 in windows and share a folder in windows.
(1) create a user: devin, password: admin123 (2) create a folder on the E drive, share, set share to share with the user devin, and set the permission: read and write. 2. create a directory share in linux and the full directory/data/share under/data. 3. mount the share directory in windows to achieve the current mount. mount mounting only takes effect for the moment, it will become invalid after restart;
[Java]View plaincopy
- Mount-t cifs-o username = devin, password = admin123 // 192.168.0.124/share/data/share
4. add the following code to the/etc/fstab file to automatically mount the device upon startup.
[Java]View plaincopy
- // 192.168.0.124/share/data/share/cifs username = devin, password = admin123, rw 0 0
So OK