Ask samba File Sharing questions?

Source: Internet
Author: User
Ask samba File Sharing questions? -- Linux Enterprise Application-Linux server application information. For details, refer to the following section. Rhel5 configure samba
1. Add two users: user1 and user2, smbpass-a user1 and user2
Create directory share and Modify host chown-R user1.user1/usr/tmp/share
Change permission chmod-R 777/usr/tmp/share
Smb. conf is as follows:
Security = user
[Share]
Path =/usr/tmp/share
Valid users = user1 user2
Public = no
Writable = yes
Write list = user1 user2
User1 logs on to create a file or folder. user2 does not have the permission to add, delete, and modify file content ??
2. Similarly, create a group of users
Useradd group
Useradd-G group user1/user2
Smbpasswd-a user1/user2
Chown-R group. group/usr/tmp/share
Chmod-R 777/usr/tmp/share
Smb. conf is as follows:
Security = user
[Share]
Path =/usr/tmp/share
Valid users = @ group
Public = no
Writable = yes
Write list = @ group
In the same case, when the two members in the group have the same folder host as the group, they cannot modify each other's file name or content after creating files. Thank you for your advice!
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.