I have a folder called "post", when I write getfacl post
I get these results:
# file: post
# owner: www-data
# group: ftpgroup
# flags: -s-
user::rwx
group::rwx
other::r-x
default:user::rwx
default:group::rwx
default:other::r-x
As you can see there is a -s-
flag, and the default permission for group is rwx, so new files should be 775.
If I write ls -lha
I got these perms:
drwxrwsr-x+ 22 www-data ftpgroup 4.0K Dec 3 20:56 post
as you can see, another s
appears, when I create a new folder (using a different user in the same group) perms goes 755 instead of 775.
I think this flag is doing something wrong, How to remove it?
r-x
rather thanrwx
group access, seemingly the core of the question. melds's answer does. – JdeBP Dec 04 '18 at 12:03