Samba permission Inheritance Issues

Source: Internet
Author: User
Samba permission inheritance-Linux Enterprise Application-Linux server application information. For details, refer to the following section. Problem:
Hello everyone, I have the following problem: samba permission inheritance. Let me describe it first:
First, in/ip/a/B/c, I set the permission of the c folder to: user1: userga (Note: The group number is 588 ),
However, the default group of user1 is userg (Note: The group number is 587) (I changed the Group Number of user1 to 587 in/etc/passwd ),
In/ip/a/B/d, I set d permission to user1: userg (that is, the default group of user1 ), I want to create a folder or file with user1 in/ip/a/B/c,
In addition, the user user2 in the userga group should be able to be viewed and executed (Note: user2 does not belong to the userg group ),
But in fact, the permission for creating a file in // ip/a/B/c with user1 is only-rwxrwx ---, as shown in the following example:
[Root @ example ~] # Cd/a/B/c
[Root @ example c] # ll
-Rwxrwx --- + user1 userg 13824 oct 15 110.xls # user2 does not belong to the group userg, and user2 is in the group userga, so it cannot be viewed.
[Root @ example d] # ll
-Rwxrw-r -- 1 user1 userg 15872 oct 15 100.xls 0000100.xls new is created with user1, the default group is userg,
Drwxrwxr-x 2 user1 userg 4096 oct 15 100 # The folder permissions created by user1 are not the same as those of the group. The default group is userg, and user2 cannot be viewed.
My other configurations are as follows:
[Root @ example ~] # Cat/etc/passwd
User1: x: 500: 587:/a/home/user1:/sbin/nologin
User2: x: 502: 588:/a/home/user2:/sbin/nologin
[Root @ example ~] # Cat/etc/group
Userg: x: 587: user1, user3
Userga: x: 588: user1, user2 # But user1 master group is userg, and user2 master group is userga
[Root @ example ~] # Cat/etc/samba/smb. conf
[Home]
Comment = example.com File Server
Path =/
Read list = @ example
Write list = @ example
Create mask = 0774
Create mode = 0775
Directory mode = 0775
The problem is the file created by user1 under/ip/a/B/c. user2 cannot be viewed and executed. if you have any friends who know the processing method, please contact me. Thank you.

# For the folder I created, the permission I defined is 750. That is to say, the owner can be rwx, and members in the group can only be r-x. Others cannot access the folder; then I create a folder or file under this folder, # its permissions are the same as above, which is also 750. At this time, when I create a third-level file or directory, its permissions change, not that, the members in the group can be modified, deleted, and created.
# Is there a way for samba to inherit the permissions I designed?
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.