in reply to set permissions automatically
umask determines what mode bits will be set on a newly created file by default. What happens is, the systems starts with bits 0777 (full permissions), and subtracts the bits that are set in your umask. The result is used as the default mode for new files.
So, basically, if you want to have all the execute bits set, make sure the corresponding bits are unset (0) in your umask.
For example, if you want a mode of 0751 by default, then set your umask to 0026.
jdporter
...porque es dificil estar guapo y blanco.
|
|---|