Bug 14203 - File permissions not working correctly
Summary: File permissions not working correctly
Alias: None
Product: File System
Classification: Unclassified
Component: ext4 (show other bugs)
Hardware: All Linux
: P1 high
Assignee: fs_ext4@kernel-bugs.osdl.org
Depends on:
Reported: 2009-09-21 18:32 UTC by Emmanuel Alicea
Modified: 2011-06-14 19:13 UTC (History)
0 users

See Also:
Kernel Version: 2.6.31-10-386
Tree: Mainline
Regression: No


Description Emmanuel Alicea 2009-09-21 18:32:25 UTC
I have two ext4 partitions, one for the entire system(P1) and the other for all my stuff(P2). The problem occurs in the P2 partition. If I set the permission of a file to read-only(444), I'm still able to rename or delete that file, no matters who's the owner of the file(that's happen even when the file owner is the root). Another curious thing is that I can rename the file but I can not replace that file with a file with the same name(in that case the error message that I don't have permission to do that appears.

The permissions in the P1 partition works perfect. Here is the fstab file. If more info is needed I'm glad to give it(kendragonXXI@gmail.com)


cat fstab
# /etc/fstab: static file system information.
# Use 'vol_id --uuid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# / was on /dev/sda1 during installation
UUID=22ac88ac-ca10-4e94-8ae4-f92bd36e52be /               ext4    relatime,errors=remount-ro 0       1
# /MASTER was on /dev/sda6 during installation
UUID=03e372ab-0d64-44da-824e-ee5c87e68d39 /MASTER         ext4    relatime        0       2
# swap was on /dev/sda5 during installation
UUID=b3e5fce9-4543-43d3-965f-71f2c847d63b none            swap    sw              0       0
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0


uname -a
Linux kendragonXXI 2.6.31-10-386 #34-Ubuntu SMP Wed Sep 16 02:18:28 UTC 2009 i686 GNU/Linux
Comment 1 Artem S. Tashkinov 2011-06-14 19:13:14 UTC
This bug has nothing to do with ext* file systems, it's the FS expected behaviour according to POSIX.

Note You need to log in before you can comment on or make changes to this bug.