Samba server configuration in RHEL5.7

Source: Internet
Author: User
I used to share windows. Today, let's try to see how sharing is implemented in linux. In fact, the relationship between the two is not complex. As a "formal" and "rigorous" technology, we do not need to copy it with a USB flash disk every day. Let's take a look at the wonderful use of samba! I. Deployment of a SAMBA server in the Samba service includes two programs: 1. smbd: providing access to server shared resources for the client. 2. nmbd: provides resolution of netbioS host names. 1. sam is used to sharing windows. Let's try sharing in linux. In fact, the relationship between the two is not complex. As a "formal" and "rigorous" technology, we do not need to copy it with a USB flash disk every day. Let's take a look at the wonderful use of samba!

I. Deployment of SAMBA services

The Samba server contains two programs: 1,Smbd: provides access to server shared resources for the client. 2. nmbd: resolves the netbioS host name.  

1. samba Installation

Samba is a tool integrated with Linux. You can choose to install it during Linux installation. Run the following command to check whether samba is installed in the system:
Rpm-qa | grep samba

650) this. width = 650; "border = 0>

View samba commands: Rpm-ql samba | head-20 (view the first 20 rows)

2. samba Configuration

(1) linux uses samba to Access windows Shared Folders

Set the shared folder on windows:

650) this. width = 650; "border = 0>

View the shared folder on linux and find that the skins folder exists. Smbclient-L 192.168.10.100

650) this. width = 650; "border = 0>

Enter the shared folder as FTP to download the file. Note that the administrator password cannot be blank. Smbclient // 192.168.10.100/skins-U administrator

650) this. width = 650; "border = 0>

Download and view the TSET file, and find that it has been downloaded to the root directory:

650) this. width = 650; "border = 0>

Mount the shared directory directly under the folder: Mount-t cifs-o username = administrator // 192.168.10.100/skins/mnt/share

650) this. width = 650; "border = 0>

Uninstall shared directory Umount/mnt/share
Related Article

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.