My linux system default file permission is 666 with a umask of 0. It is 664 with a umask of 0002 and it is 644 with a umask of 022. How do i force newly created file to have a 775 permissions? Also how do I change the linux default file permission of linux box from 666 to something else like a 755? I am running a debian based system.
umask doesn't turn on bits, it only turns them off. If the application you use to create the file or directory doesn't try to create with the executable bit set (for instance,
mkdir), nothing you do with
umask will add an executable bit.