LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-02-2015, 10:13 PM   #1
deoren
Member
 
Registered: Oct 2003
Location: USA
Distribution: Ubuntu
Posts: 216

Rep: Reputation: 30
ACLs - Mask - permissions defined in the owner and owning group entries


First of all, thank you for reading this. I'm new to POSIX ACLs, so I've been doing a lot of reading on the subject. I found many sources, one of those being the openSUSE Security Guide.

In both of these versions (with 12.1 where I first found it mentioned):

https://doc.opensuse.org/documentati...rity.acls.html

https://activedoc.opensuse.org/book/...lists-in-linux

I found this statement:

Quote:
All permissions defined in the owner and owning group entries are always effective.
Here is that same statement with the surrounding text for context:

Quote:
The mask entry further limits the permissions granted by named user, named group, and owning group entries by defining which of the permissions in those entries are effective and which are masked. If permissions exist in one of the mentioned entries as well as in the mask, they are effective. Permissions contained only in the mask or only in the actual entry are not effective—meaning the permissions are not granted. All permissions defined in the owner and owning group entries are always effective.
However I've found two other sources which seem to say otherwise. One is the man page for getfacl and the other is "UNIX and Linux System Administration Handbook, 4th Edition".

Man page reference:

http://linux.die.net/man/1/getfacl

Relevant text:

Quote:
Lines 5, 7 and 10 correspond to the user, group and other fields of the file mode permission bits. These three are called the base ACL entries. Lines 6 and 8 are named user and named group entries. Line 9 is the effective rights mask. This entry limits the effective rights granted to all groups and to named users. (The file owner and others permissions are not affected by the effective rights mask; all other entries are.)
The "to all groups" and "all other entries" implies that the owner group (or "default/primary" group) IS affected, which is in contrast to what the openSUSE documentation says.

UNIX and Linux System Administration Handbook, 4th Edition has this to say:

Quote:
The mask limits the access that the ACL can confer upon all named users, all named groups, and the default group.
That seems to directly confirm what the man page says, i.e., [em]the traditional UNIX group (primary, default) IS affected by the ACL Mask.[/em]

Can anyone confirm which is the case?

Thanks!
 
Old 03-09-2015, 12:36 AM   #2
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Unix, Irix, Linux, BSD, etc. are their own systems. Even in Linux, different distros can handle ACLs differently simply because they have different versions of the same software installed across them. A good rule of thumb for learning any topic in this space is to use the Internet sources to augment your understanding but use the manual pages of your working system as the source of truth for behavior and usage. This applies to anything you learn in the *nix family of operating systems. I realize I didn't answer your question directly but hopefully you can use that advice to find the answer you need.

Last edited by sag47; 03-09-2015 at 12:38 AM.
 
Old 04-13-2017, 12:58 PM   #3
rpittala
Member
 
Registered: Jan 2012
Location: PUNE
Distribution: SunOS sun4v sparc sun4v Solaris
Posts: 102
Blog Entries: 1

Rep: Reputation: Disabled
ACL permissions issue with Unix and Windows

Hi Folks,

I need an understanding here, when I set the ACL permissions to certain files on Unix/Linux and transfer these files to Windows, will these file permissions remains same ? to make these file permissions consistent, what is that required to capture and modify ? W.R.T ACL security ?
 
Old 04-14-2017, 01:29 AM   #4
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,264
Blog Entries: 24

Rep: Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is a duplicate, further discussion of this issue should continue here.
 
  


Reply

Tags
acl, groups, mask



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ACLs, chmod and group permissions hewbert Linux - Server 3 03-02-2015 10:00 PM
Force owner, owner group, permissions... leamassiot Linux - General 8 03-13-2014 04:40 AM
What is .gvfs? Owner is ?, group ?, permissions are ?????????, size is ? 809areacode Linux - General 1 08-19-2011 12:02 PM
/etc/mtab has bad permissions/owner/group on Ubuntu Edgy ImpactDNI Linux - Software 1 11-08-2006 06:56 PM
/dev entries changing their owner and permissions pulsosu Linux - Security 2 04-11-2005 06:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration