GNU bug report logs -
#12130
"sudo make install" applies umask to new directories
Previous Next
Reported by: Jason Eisner <jason <at> cs.jhu.edu>
Date: Fri, 3 Aug 2012 07:18:01 UTC
Severity: normal
Tags: notabug
Done: Eric Blake <eblake <at> redhat.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[CC coreutils this is
http://lists.gnu.org/archive/html/bug-automake/2012-08/msg00001.html]
On 09/14/2012 07:29 PM, didi wrote:
>> You can already do this. You can, e.g., install packages with
>> >
>> > make install MKDIR_P="mkdir -p -m 700"
> Unfortunately this doesn't seem to work properly, as the parent directories
> still retain the permissions of the user.
>
> $ mkdir -p -m 755 foo/bar
>
> drwx------ foo/
> drwxr-xr-x bar/
>
>
>
>
Hi Didi,
That was unexpected and unfortunate IMVHO. I see the same behaviour on
my local system, in other words,
mkdir -p -m 700 /tmp/foo/bar
creates bar with permissions 700 and bar with 776 (my umask). I wonder
is that behaviour is mandated by some standard or if there is room for
improvement in coreutils here (CC:ed).
Thanks,
Peter
This bug report was last modified 12 years and 252 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.