emacs-bug-tracker
[Top][All Lists]
Advanced

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

[debbugs-tracker] bug#22432: closed (owner, group and mode options are o


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#22432: closed (owner, group and mode options are only applied to the deepest directory)
Date: Fri, 22 Jan 2016 16:46:03 +0000

Your message dated Fri, 22 Jan 2016 09:45:13 -0700
with message-id <address@hidden>
and subject line Re: bug#22432: owner, group and mode options are only applied 
to the deepest directory
has caused the debbugs.gnu.org bug report #22432,
regarding owner,group and mode options are only applied to the deepest directory
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
22432: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=22432
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: owner,group and mode options are only applied to the deepest directory Date: Fri, 22 Jan 2016 12:42:05 +0100 User-agent: Mutt/1.5.21 (2010-09-15)
Package: coreutils
Version: 8.21

When 'install' creates nested directories the options for owner,group and mode
are only applied to the deepest directory.

Example, when I run as root :

install -o "www-data" -g "models" --mode=2775 -d /tmp/00/00/00/00

ls -la /tmp/00/00/00/00
drwxrwsr-x 2 www-data models 4096 Jan 21 16:38 .
drwxr-xr-x 3 root     root   4096 Jan 21 16:38 ..

This shows that /tmp/00/00/00/ is owned by root:root and has 755 as permissions.
The same holds for the just created /tmp/00/00/ and /tmp/00/ .
Only /tmp/00/00/00/00/ is correct.

All created directories should get the given owner,group and mode options.

System: Ubuntu 12.04.5 LTS
GNU coreutils 8.21 (deb 8.21-1ubuntu5.3 amd64)

-- Hans Lambermont



--- End Message ---
--- Begin Message --- Subject: Re: 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


--- End Message ---

reply via email to

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