lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.44L0.1410101628080.1539-100000@iolanthe.rowland.org>
Date:	Fri, 10 Oct 2014 16:35:16 -0400 (EDT)
From:	Alan Stern <stern@...land.harvard.edu>
To:	Andreas Dilger <adilger@...ger.ca>
cc:	Theodore Ts'o <tytso@....edu>, <linux-ext4@...r.kernel.org>
Subject: Re: Does the filesystem alter file permissions?

On Fri, 10 Oct 2014, Andreas Dilger wrote:

> On Oct 10, 2014, at 1:41 PM, Alan Stern <stern@...land.harvard.edu> wrote:
> > I'm getting very weird results when creating new files on ext4 
> > filesystems (this is on a CentOS 7 system).  The permissions are not 
> > what they should be.
> > 
> > On the / filesystem, as superuser:
> > 
> > [root@...ver ~]# umask
> > 0000
> > [root@...ver ~]# touch a
> > [root@...ver ~]# ls -l a
> > -r--r----- 1 root root 0 Oct 10 11:45 a
> > 
> > As a normal user:
> > 
> > [stern@...ver ~]$ umask
> > 0000
> > [stern@...ver ~]$ touch b
> > [stern@...ver ~]$ ls -l b
> > -rw------- 1 stern stern 0 Oct 10 11:47 b
> 
> Do you have a default ACL set on the filesystem?  Try "getfacl".

I didn't create any, but it's possible the system installation did.
getfacl /root yields:

# file: root
# owner: root
# group: root
user::r-x
group::r-x
other::---
default:user::r-x
default:group::r-x
default:other::---

getfacl /boot yields:

# file: boot
# owner: root
# group: root
user::r-x
group::r-x
other::r-x
default:user::r-x
default:group::r-x
default:other::r-x

Would this cause the observed effect?  I don't know what the default 
ACLs do.  Are they explained anywhere?

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ