GNU bug report logs - #22432
owner,group and mode options are only applied to the deepest directory

Previous Next

Package: coreutils;

Reported by: Hans Lambermont <hans <at> shapeways.com>

Date: Fri, 22 Jan 2016 15:53:02 UTC

Severity: normal

Tags: notabug

Found in version 8.21

Done: Eric Blake <eblake <at> redhat.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Hans Lambermont <hans <at> shapeways.com>
To: bug-coreutils <at> gnu.org
Subject: owner,group and mode options are only applied to the deepest directory
Date: Fri, 22 Jan 2016 12:42:05 +0100
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




This bug report was last modified 9 years and 124 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.