Re: Samba share and file attributes

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Craig White
Date:  
To: Main PLUG discussion list
Subject: Re: Samba share and file attributes
On Thu, 2009-04-16 at 07:31 -0700, Alan Dayley wrote:
> Samba is getting the better of me. No, it's wipping me.
>
> I have a Samba 3.2 server sharing a directory tree. Let's call this
> share Master. Here is what I need:
>
> - All Linux users in group "mastershare" need MSWindows "full control"
> on all files in the tree via MSWindows clients.
> -- This means read, write, create, delete, etc.
> -- Most important they must be able to set the MSWindows file
> attributes: read-only, system, hidden
> - All Linux users in the group "mastershareread" need read-only access
> via MSWindows clients.
> - All other Linux users have no access via MSWindows clients.
>
> The attributes part is killing me. I cannot get the combination of
> file-system permissions and all the Samba settings involved such that
> I can allow the "mastershare" group control of the attributes!
>
> Samba settings involved are:
> map hidden
> map system
> map archive
> map readonly
> store dos attributes
> create mask
> directory mask
> force user
> force group
> (Others?)
>
> This is all interacts with the linux file system permissions bits,
> user, group, etc. It's driving me crazy.
>
> Anyone want to help? What more information do I need to provide?

----
I think we just went through this with someone else on list a month or
so ago.

You probably want to check how the file system is mounted xattr? as that
is pretty key to getting extended attributes.

You will definitely want to look at the man page for smb.conf -
specifically at the 'ea support' and 'store dos attribtes' sections.

The 'map' attributes functionality pretty much depends upon them. create
mask & force commands might influence (override) some of the other
settings.

Craig


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss