[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Fri, 10 Oct 2014 14:18:45 -0600
From: Andreas Dilger <adilger@...ger.ca>
To: Alan Stern <stern@...land.harvard.edu>
Cc: Theodore Ts'o <tytso@....edu>, linux-ext4@...r.kernel.org
Subject: Re: Does the filesystem alter file permissions?
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".
Cheers, Andreas
> In /boot (which is a separate ext4 filesystem):
>
> [root@...ver boot]# umask
> 0000
> [root@...ver boot]# touch a
> [root@...ver boot]# ls -l a
> -r--r--r--. 1 root root 0 Oct 10 15:30 a
>
> On a tmpfs filesystem, the permissions are -rw-rw-rw-, as expected.
>
> What causes this sort of thing, and how can I change it?
>
> Thanks,
>
> 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
Cheers, Andreas
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists