Subject: pkg_add and default umask
To: None <>
From: Jeremy C. Reed <>
List: tech-pkg
Date: 04/09/2004 10:45:39
I should learn my lesson, but I have done it again: installed over 100
packages with umask 0077.

So any created directories, many symlinks and some files have rwx------
permissions. Ouch. (It took a while to clean up over 900 files.)

Is there any reason not force a sane umask value with pkg_add?

pkg_create does:

        check_list(Home, &plist, basename_of(pkg));
        (void) umask(022);      /* make sure gen'ed directories, files
                                 * don't have group or other write bits. */

pkg_add should do same.

We could add a -U switch to override the 022.

   Jeremy C. Reed