Linux and window file sharing

Source: Internet
Author: User

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

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.