$ touch test.txtIt's hard to see, but its the eleventh character in the permission string:
$ ls -l test.txt
-rw-rw-r--. 1 doug doug 0 Feb 27 20:21 test.txt
1 Type of object, ex: d for dir or l for linkOriginally, I though this was an ext4 thing, but when I mount an ext3 under Fedora 13, I still get the dot.
2-4 Permissions for owner
5-7 Permissions for group
8-10 Permissions for others
11 Mystery dot
Turns out, the mkfs commands have been modified to set ACLs on by default, and the dot is a place holder to represent an empty ACL. Previously, an empty ACL was not represented, as all ACLs are empty by default. Try this:
$ sudo tune2fs -l /dev/sda6 | grep optionsBy executing a setfacl command (as in set file ACL... ACL is pronounced like "ack ull") we change the dot to a plus, which tells us the ACL is no longer empty.
Default mount options: user_xattr acl
$ setfacl -m u:apache:r test.txt
$ ls -l test.txt
-rw-rw-r--+ 1 doug doug 0 Feb 27 20:21 test.txt
$ getfacl test.txtIf we blank the ACL, the plus is gone, and the dot is back:
# file: test.txt
# owner: doug
# group: doug
user::rw-
user:apache:r--
group::rw-
mask::rw-
other::r--
$ setfacl -b test.txt
$ ls -l test.txt
-rw-rw-r--. 1 doug doug 0 Feb 27 20:21 test.txt
Actually, it's related to SELinux; disable SELinux and you won't see the dot on newly created files.
ReplyDelete