GNU bug report logs - #12130
"sudo make install" applies umask to new directories

Previous Next

Package: automake;

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

From: didi <diogofsr <at> gmail.com>
To: 12130 <at> debbugs.gnu.org
Subject: bug#12130: Fwd: bug#12130: "sudo make install" applies umask to new	directories
Date: Fri, 14 Sep 2012 09:29:03 +0000 (UTC)
Peter Johansson <trojkan <at> gmail.com> writes:

> 
> On 08/21/2012 02:46 PM, Jason Eisner wrote:
> > Better idea:
> >
> > Have default 644 for files and 755 for directories, but let the user 
> > override this by explicitly specifying any of
> > * the desired file permissions
> > * the desired directory permissions for newly created directories
> > * the desired group owner for newly created files and directories
> > via command-line options on "make install".
> >
> >
> 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/





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.