[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AW: cp -p does not work if normal users are allowed to chown files
From: |
Jim Meyering |
Subject: |
Re: AW: cp -p does not work if normal users are allowed to chown files |
Date: |
Wed, 13 Feb 2008 18:29:45 +0100 |
[thanks for the additional details. For now, I'm just Cc'ing
the list. Please retain the Cc in the future, so anyone else
with the same problem can find this discussion. This is relatively
low priority, since very few people care about systems configured to
allow regular users to use chown. If you don't hear back from someone
after a couple weeks, please ping the mailing list. ]
"PHILIPP, Axel, Dr." <address@hidden> wrote:
> Thanks for the fast response.
> We first came across the problem with version 5.93 (that's from Novell
> SLED10). Yesterday I downloaded coreutils-6.9, I didn't notice that there was
> e newer version. Since I detected in the source code, that the current
> behaviour is intended, I didn't repeat the test with version 6.9.
>
> This is our testcase:
> use XFS as filesystem (at least 2.5 years ago xfs was the only Linux fs which
> could be configured to allow chown for normal users)
>
> do as root
> echo "0" > /proc/sys/fs/xfs/restrict_chown
>
> do as normal user
> umask 027
> echo xxx >tf1
> chmod 644 tf1
> chown <otheruser>:<othergroup> tf1
> cp -p tf1 tf1.copy