How to experiment with SMB network protocol in Linux

Source: Internet
Author: User
& Nbsp; mount/dev/cdrom/media/cdromrpm-qa | grepsamba to start servicesmbstart/etc/init. d/smbstart we share a directory: This directory allows a group to read and write the second step (groupaddshare creates a user share  

Step 1

Mount

Mount/dev/cdrom/media/cdrom

Rpm-qa | grep samba

Start service smb start ===/ etc/init. d/smb start

We share a directory that allows a group to read and write data.

Step 2

(Groupadd share create user user1

And add usermod-g share user1 to the group)

Useradd user1

Passwd user1 (123)

Groupadd share

Usermod-g share user1

Step 3

We append permissions

Chown: share/home/share

Chmod-c g wxr/home/share (permission mode changed to 0775rwxrwxr-x)

Step 4

We compile the samba configuration file.

Vi/etc/samba/smb. conf

[Share]

Comment = sambas share

Writable = yes = @ share = write list

Path =/home/share

You still need to write this user to smbpasswd.

Cd/etc/samba

Ls

Smbpasswd-a user1

Let's verify it from the client.

Run \ 192.168.0.200

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.