Home > Mac, Security, Sys Admin > MAC – Change default umask in Snow Leopard

MAC – Change default umask in Snow Leopard

December 22nd, 2009 Leave a comment Go to comments

echo "umask 002" >> /etc/launchd-user.conf.

reboot

Read more about it here: apple kb

  1. Kane
    May 1st, 2010 at 00:11 | #1

    Argh, this is driving me crazy,

    This is not working for me. It works if I add “umask 002″ to /etc/launchd.conf, but obviously I don’t want that for all processes.

    Can anyone think of why it wouldn’t be working in launchd-user.conf???

  2. Kane
    May 1st, 2010 at 00:57 | #2

    Okay, jumped the gun asking for help. For some reason the launchd-user.conf file I created wasn’t displaying the .conf extension, even though it was shown on get info. Strange. Anyway after recreating the file it worked.

    But now, I’m confused over what it’s doing:

    I thought umask was only suppossed to restrict permissions but they would still be granted based on the enclosing folders permissions. Is this not correct?

    Now with umask 002 set everything created in a folder with 700 permissions is created with 774. I know others won’t have access to the folder anyway, but it’s not how I thought it would behave.

    Any thoughts? Thanks.

  3. May 3rd, 2010 at 10:00 | #3

    The goal of this change is to allow users who share a mac to be able to create files/folders and have other users access them.

  1. No trackbacks yet.