GNU bug report logs - #12014
cp -p fails to preserve permissions on sshfs

Previous Next

Package: coreutils;

Reported by: Jared Henley <jared.henley <at> pelena.com.au>

Date: Sat, 21 Jul 2012 21:17:03 UTC

Severity: normal

Tags: notabug

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


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

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Jared Henley <jared.henley <at> pelena.com.au>
Cc: 12014 <at> debbugs.gnu.org
Subject: Re: bug#12014: cp -p fails to preserve permissions on sshfs
Date: Sat, 21 Jul 2012 22:35:59 -0500
On 07/19/2012 06:10 PM, Jared Henley wrote:
> Is there some security reason why the permissions fall back to 600 when the
>
> chown fails

Absolutely.  The user has indicated the desire for
a file to be owned by U with permissions P, but
as chown failed the file is owned by V, where V is
not U.  In that case, changing the file's permissions
to P would grant access to people who would not have
access if the user's request could be satisfied.

Presumably the --preserve option could be used
to get the behavior you want.




This bug report was last modified 6 years and 298 days ago.

Previous Next


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