I can't manage to set x bit to created file.archemar@foobar:~/D> echo echo hello world > v.sharchemar@foobar:~/D> ls -l v.sh-rw-rw-r--+ 1 archemar group1 17 Apr 12 08:12 v.shno x-bit, let's look at aclarchemar@foobar:~/D> getfacl v.sh# file: v.sh# owner: archemar# group: group1user::rw-group::rwx                      #effective:rw-group:group1:rwx             #effective:rw-mask::rw-other::r--group1 is rwx in acl !!let's look at acl for local dirarchemar@foobar:~/D> getfacl .# file: .# owner: FTP_D_adm# group: adminuser::rwxgroup::rwxgroup:group2:rwxgroup:admin:rwxgroup:group1:rwxmask::rwxother::r-xdefault:user::rwxdefault:group::rwxdefault:group:group1:rwxdefault:mask::rwxdefault:other::r-xI am part of group1:archemar@foobar:~/D> iduid=1001(archemar) gid=1001(group1) groups=1001(group1),16(dialout),33(video)let's try to executearchemar@foobar:~/D> ./v.sh-bash: ./v.sh: Permission deniedsetting g+x is trivial, but real file will come through ftp. Is there a way to have bit x set ?OS is suse 11.4, directory is NFS 3 mounted, ACL is set on filesystem.
setting 'x' (executable) bit using ACL
permissions;acl;suse
This has been answered peripherally in these two questions:How does umask affect ACLs?https://superuser.com/questions/180545/setting-differing-acls-on-directories-and-filesThe relevant bits are generally from man setfacl:The perms field is a combination of characters that indicate  the  >permissions: read (r), write (w), execute (x), execute only if the file is  a directory or already  has  execute  permission  for  some  user  (X).  Alternatively, the perms field can be an octal digit (0-7).(Emphasis mine)The relevant section from the first question in the anwser by @slm is the following:To summarizeFiles won't get execute permission (masking or effective). Doesn't matter which method we use: ACL, umask, or mask & ACL.Directories can get execute permissions, but it depends on how the masking field is set.The only way to set execute permissions for a file which is under ACL permissions is to manually set them using chmod.Which basically means that it seems you cannot do what you want to do with ACL, since very few programs actually explicitly say that they want to create an executable file.