Advertisement

09.01.2008 at 07:51AM PDT, ID: 23693860
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.9

Samba: ACLs, Inheritance and Ownership

Asked by Chris-Dent in Sun Solaris, Samba File Server, Active Directory

Tags: , , ,

Hey guys,

I've been struggling with a Samba installation on Solaris. Before I give up and go with something much simpler for the access control I'd like to have a final pop and getting it to work as I want.

Samba 3.2.1 is running on Solaris 10 patch 5, the server is a member of my AD domain, using Kerberos authentication, etc etc. That part all works well.

All shares for Samba reside on a ZFS file system. I have set:

zfs set aclmode=passthrough
zfs set aclinherit=passthrough

I have three issues that I was  hoping to address:

1. Ownership

I can't see to use the Samba "inherit owner" option, either because the file system is ZFS, or because I'm telling Samba to use ZFSACL (VFS Object).

Is there another way to force the owner and group of a new file to inherit from the parent? Or am I just missing something silly?

2. Inheritance

It mostly works. Unfortunately the ways it doesn't work make it quite sad.

Here's my base ACL (short format):

drwxrwx---+  3 root     root           3 Sep  1 14:19 dentc
    owner@:--------------:------:deny
    everyone@:-----------C--:fd----:deny
    owner@:rwxp---A-W--o-:fd----:allow
    user:dentc:rwxpd-aARWc--s:fd----:allow
    group@:rwxp----------:------:allow
    group:"domain admins":rwxpdDaARWcCos:fd----:allow
    everyone@:------a-R-c--s:------:allow

It does exactly what I need, in that it stops people messing with the permissions, but also stops Windows whining about re-ordering. That means I can maintain these permissions through the Windows GUI without it breaking horribly.

The problem is, newly created files get these additional ACEs added:

    owner@:--------------:------:deny
    owner@:rwxp---A-W-Co-:------:allow
    group@:-w-p----------:------:deny
    group@:r-x-----------:------:allow
    everyone@:-w-p---A-W-Co-:------:deny
    everyone@:r-x---a-R-c--s:------:allow

Built from the file mode (755). Is there any way to stop that so I only have the inherited extended ACL?

3. Propagation

Bearing in mind this is intended to retrofit onto an existing Samba server (after a lot of upgrading) which uses user mapping to Unix accounts (no integration at all):

How do I (or can I) force propagation of extended access control lists? Because at the moment those that I have on my test system only apply to newly created files unless explicitly set.

Thanks,

ChrisStart Free Trial
 
Loading Advertisement...
 
[+][-]09.01.2008 at 06:13PM PDT, ID: 22363610

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Sun Solaris, Samba File Server, Active Directory
Tags: Samba, Samba, 3.2.1, Solaris, ZFS, Active Directory, Windows Permissions
Sign Up Now!
Solution Provided By: yuzh
Participating Experts: 2
Solution Grade: A
 
 
[+][-]09.02.2008 at 01:33AM PDT, ID: 22365144

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.02.2008 at 05:18AM PDT, ID: 22366522

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]09.03.2008 at 03:34AM PDT, ID: 22375661

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628