0

How can one set the executable bit on files using umask? According to documentation, a umask of 000 should work, but in practice this only works on directories.

Also open to other methods of automatically setting +rwx on a particular user's created files if you have any.

1
  • 1
    Why would you want to do this? There is a reason why things are not executable by default. It sounds like a potential security issue to me.
    – Zoredache
    Sep 13, 2012 at 23:32

1 Answer 1

2

There is no general automatic way to have The file mode set to rwx. The umask setting does not set the bits it stops them from being set. It is up to the application that is creating the file to set the file mode appropriately which is then modified by umask.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .