Linux note_samba _ sharing

Source: Internet
Author: User
Linux note_samba _ share-Linux Enterprise Application-Linux server application information. For details, see the following section. Original Author: the past
Download: http://samba.t8.com

A software that can communicate with WINDOWS and LINUX. Powerful functions

Samba (server. Windows does not require installation)

Samb-client (client)

Samb-common (library. Both the client and server must be installed)

1. Installation: RPM package: rpm-ivh samba-client-3.0.0-15.i386.rpm

Packages that may require dependency security. Here.

2. Verify the installation: rpm-qa | grep samba -------------> check all RPM software. However, if samba has the preceding three packages, it is OK.

3. smbtree directly press enter to enter the password. because not all the machines to be queried are root users, it is meaningless to enter the password. press enter to query the WINS server anonymously. at this time, it can be the same as the network neighbor that opens WIN. you can see the host and workgroup (domain) of the network)

Smbtree [-B] [-D] [-U username % password]-B Indicates sending in broadcast mode;-D Indicates displaying a working group or domain;-U username % password

4. nmblookup resolves the Host IP Address

Nmblookup server -----------> query the IP address of the SERVER whose host name is

Nmblookuo \ * ------------> query active hosts in the CIDR Block

5. smbclient-L server ---------> query server host sharing (anonymously)

Smbclient-L server-U liao % 123456 ---------> share with the peer User Name

Smbclient // 10.10.10.254/share-U liao % 123456 log on to the host with the verified user name and enter share

Smb> get test.txt/home/temp download the test.txt file to/home/temp

Smb> put/home/temp/test.txt uploads the test.txt file on the Linux kernel to another shared file (test.txt is the remote file name after two directories)

7. smbmount mount remote sharing (equivalent to disk ing in windows)

Smbmount // 10.10.10.254/share/mnt/netdisk-o username = liao % 123456 ---------> mount the share of the service

The-o parameter in the/mnt/netdisk directory is the user name and password specified during mounting.

6. We recommend that you share the samba server.

Edit/etc/samba/smb. conf on linux

In Global configuration, Global Settings

Workgroup = myshare ---------> define a workgroup or domain (this job must exist)

Security = share ---------> the default value is USER. share.

[Sharename] ----------> Share Name

Path =/home/temp --------- shared path

Comment = samba_share ---------> Share Comments

Public = yes -------> public. NO table is not public.

Save and exit

Service smb restart -----> restart the service

Chkconfig smb on -------> open the smb service and run it automatically

Verify sharing

Smbclient-L localhost ----> verify whether local sharing is successful
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.