4

I have added umask 002 to /etc/profile, but software like git and apache still sets files to 755 instead of 775. Is there a way to force umask 002 for all programs on a machine?

1 Answer 1

2

I don't know if this can be done globally but tracking down the startup scripts for the relevant software and setting the umask there should do the trick.

2
  • I think I found at least some of the problem. I switched to zsh and then /etc/profile doesn't seem to get loaded. Thanks for your answer.
    – grm
    May 7, 2010 at 13:54
  • Iain, I love your nomination remarks & was already 2 for 3 when I saw your "don't vote for me, vote for...".
    – Krista K
    Nov 24, 2014 at 20:44

You must log in to answer this question.

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