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/
