Subscribe to RSS feed

«

»

Jul
21

Mac OS X 10.5: Setting a custom umask

umask is a UNIX command to set the default permissions for newly created files and folders. Especially when you have to share your files with other users on your computer or on a network share the default umask of 022 which Mac OS X uses is not very handy, it would be better if all users of a group could write files by default. For that a umask of 002 is needed.

Apple has a knowledge base article addressing this issue. It’s quiet easy, all you have to do is to create two files in /etc in your terminal. You need to have administrator level on your system to do that:

/etc/launchd-user.conf

1
umask 002

/etc/launchd.conf

1
umask 002

2 comments

  1. Roland says:

    Das bedeutet dann aber, daß diese Änderung bei allen neu angelegten Dateien/Verzeichnissen wirksam wird. Kann man das denn irgendwie eingrenzen auf Dateien im Verzeichnis /Füralle Benutzer?

  2. Wolfgang says:

    soviel ich weiss, gilt die umask dann für _alle_ neuen dateien und ordner, wie man das verhalten auf einzelne verzeichnisse einschränken kann ist mir nicht bekannt :-(
    sollt ichs mal rausfinden, wird das ergebnis natürlich hier hinzugefügt.

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>