Steps for Linux to install SMB:

Source: Internet
Author: User

Steps to install SMB:

1. Install the RPM package

Mount/dev/cdrom/mnt

Cd/mnt/package

Rpm-ivh samba-3 .....

2. Filtering the configuration file

Cd/etc/samba

MV Smb.conf Smb.conf.bak

Grep-v "^#" Smb.conf.bak | Grep-v "^*" | Grep-v "^$" |  Grep-v "^;" > smb.conf

3. Modify the configuration file for anonymous sharing

Modify smb.conf in security = Share

Add at the end of the document

[Share]

Path =/share (add shared path, make sure this directory exists)

Public = yes (allow everyone to access)

Writable = Yes (allows all people to write)

Restart Service

Verify with Client


4. Add a shared and user alias with authentication

Modify smb.conf in security = user

Under [Global]

Add on username map =/etc/samba/smbusers

Add King = k line in/etc/samba/smbusers

Add an SMB account

Smbpasswd-a King

Restart Service

Login verification with K to act as king access


5. Establish a shared folder that requires authentication share

Adding in the smb.conf configuration file

[Share]

Path =/share

browseable = yes

Valid users = root,king

Write list = root

Save and exit

Restart Service

Login verification with Test account


6. Configure deny an IP access share

Under [Global]

Add hosts deny = 192.168.1.2

Restart Service

Client and other client access authentication with IP 192.168.1.2, respectively


Steps for Linux to install SMB:

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.