Commands are often used. record the following again.
Window access the Linux share folder.
1. Create the SMB account. Then you can use this username to access the Linux share folder.
Smbpasswd-A username
Share folder in Ubuntu, you need to install SMB.
Linux access the window share folder.
It has two steps to access the share folder.
1. Check which folder the Linux server provide to share.
Smbclient-L hostip--User='Domain/Username'
2. Mount the share folder to local disk.
Smbmount//Hostip/login folder local-path-o User = 'domain/username'
Linux access the window share folder.
1. INstalling NFS services on Ubuntu
The services required to enable NFS folder sharing are not installed by default on Ubuntu. They can easily be installed, however, by opening a terminal window and entering the following command:
Sudo Apt-GetInstall NFS-Kernel-Server
The installation process shocould automatically start the NFS service. To verify that the service is indeed running, execute the following command:
Sudo/Etc/Init. d/NFS-Kernel-Server Status
If the output from the above command indicates that the service is not running, it may started as follows:
Sudo/Etc/Init. d/NFS-Kernel-Server start
2. The file server will export share folder.
Edit the/etc/exports.
The format like this:
/Usr/cluster 10.148.218.176 (RW)
/Usr/cluster 10.148.218.205 (RW)
/Home/raastd 10.148.218.93 (RW)
/Root/RAAS/build/regression_test/output * (RO, sync)
3. mount it.
Sudo Mount hostname:/container Folder/localfolder
4. unmount it.
Sudo unmount./localfolder
The last one, it is easy to access the folder between windows.
Note:
1. There is also one way to access the share folder by GUI interface: Main Menu; places/connecet to server...
2. If you want to mount the folder when you restart your computer, you can update the file/etc/fstab
/Dev/cd0/Media/cdrom0 UDF, iso9660 user, noauto, exec, utf8 0 0
// remotepath/usr/win-share CIFS username = domain \ Username, passwd = xxx, RW, iocharset = utf8, file_mod = 0777, dirmode = 0777 0 0