bug#12014: cp -p fails to preserve permissions on sshfs
From:
Paul Eggert
Subject:
bug#12014: cp -p fails to preserve permissions on sshfs
Date:
Sat, 21 Jul 2012 22:35:59 -0500
User-agent:
Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20120714 Thunderbird/14.0
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.