* [Bug 36312] New: User belonging to another Group has no access when chmod 0040
@ 2011-05-31 0:19 bugzilla-daemon
2011-05-31 18:43 ` [Bug 36312] " bugzilla-daemon
0 siblings, 1 reply; 2+ messages in thread
From: bugzilla-daemon @ 2011-05-31 0:19 UTC (permalink / raw)
To: linux-ext4
https://bugzilla.kernel.org/show_bug.cgi?id=36312
Summary: User belonging to another Group has no access when
chmod 0040
Product: File System
Version: 2.5
Kernel Version: 2.6.39
Platform: All
OS/Version: Linux
Tree: Mainline
Status: NEW
Severity: low
Priority: P1
Component: ext4
AssignedTo: fs_ext4@kernel-bugs.osdl.org
ReportedBy: ubuntuefnet@gmail.com
Regression: Yes
This may not be a bug, this may be intentional - however it was considered
pretty damn weird when encountered and worth a mention.
Say we have user 'bob', he is the owner of file 'accounting.txt' and
'accounting.txt' has group 'staff' attributed to the file which 'bob' is a part
of. If the permissions for the file only have group perms (e.g 0060), 'bob'
will not be able to access 'accounting.txt', however all other users in the
'staff' group will have access.
Replication via CLI:
touch myfile.txt && chown `whoami`:`groups | awk '{print $2}'` myfile.txt &&
chmod 0040 myfile.txt && cat myfile.txt
System: Debian 6.0.1
Arch: x86_64
Kernel: 2.6.39
--
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug 36312] User belonging to another Group has no access when chmod 0040
2011-05-31 0:19 [Bug 36312] New: User belonging to another Group has no access when chmod 0040 bugzilla-daemon
@ 2011-05-31 18:43 ` bugzilla-daemon
0 siblings, 0 replies; 2+ messages in thread
From: bugzilla-daemon @ 2011-05-31 18:43 UTC (permalink / raw)
To: linux-ext4
https://bugzilla.kernel.org/show_bug.cgi?id=36312
Jan Kara <jack@suse.cz> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jack@suse.cz
AssignedTo|fs_ext4@kernel-bugs.osdl.or |jack@suse.cz
|g |
--- Comment #1 from Jan Kara <jack@suse.cz> 2011-05-31 18:43:43 ---
Yes, this works as defined in the standard. If user is the owner, we check
against owner bits. If the user is not the owner, but belongs to the owner
group, we check against group bits. If user falls into neither of previous
cathegories, we use 'other' bits.
--
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-05-31 18:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-31 0:19 [Bug 36312] New: User belonging to another Group has no access when chmod 0040 bugzilla-daemon
2011-05-31 18:43 ` [Bug 36312] " bugzilla-daemon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).