bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#22432: owner, group and mode options are only applied to the deepest


From: Eric Blake
Subject: bug#22432: owner, group and mode options are only applied to the deepest directory
Date: Fri, 22 Jan 2016 09:45:13 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0

tag 22432 notabug
thanks

On 01/22/2016 04:42 AM, Hans Lambermont wrote:
> Package: coreutils
> Version: 8.21
> 
> When 'install' creates nested directories the options for owner,group and mode
> are only applied to the deepest directory.

Thanks for the report, but this is documented.  Per 'info install':

   • If the ‘--directory’ (‘-d’) option is given, ‘install’ creates each
     DIRECTORY and any missing parent directories.  Parent directories
     are created with mode ‘u=rwx,go=rx’ (755), regardless of the ‘-m’
     option or the current umask.  *Note Directory Setuid and Setgid::,
     for how the set-user-ID and set-group-ID bits of parent directories
     are inherited.

If you want to create parent directories with specific permissions, you
have to do multiple invocations.

As such, I'm closing this as not a bug, but feel free to add further
comments to this thread.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]