On 13.08.2013 14:18, Paul Slootman wrote: > On Tue 13 Aug 2013, Matthias Schniedermeyer wrote: > > > > > > > Hardlinking a file doesn't change it's owner/group/permission > > > > (All Hardlinks have the same user/group/permissions). > > > > > > I never said that. > > > > You implied that by your assertion that you suddenly can read a file > > after hardlinking it. > > NO! > > I implied that if you have the permissions to make the hardlink, > then you also have the permissions to chmod the file. > It seems you don't want to understand what _I_ am saying.
ln /etc/shadow my_shadow ls -l my_shadow -rw-r----- 2 root shadow 1379 Mar 5 13:55 my_shadow chmod 777 my_shadow chmod: changing permissions of 'my_shadow': Operation not permitted ls -l my_shadow -rw-r----- 2 root shadow 1379 Mar 5 13:55 my_shadow Unless i'm testing it wrong. > > > I said that if a hardlink can be made (and I meant on a modern linux > > > kernel, with default settings) then the user already has permissions to > > > do anything with the file. I forgot already about the old semantics :) > > > > Did you read what i just wrote? > > Ditto. > > > You can't do anything more to the file than before you hardlinked it. > > Did you read what i just wrote? > > Try it on a 3.6 linux kernel. I tested with 3.10.6 But: sysctl fs.protected_hardlinks fs.protected_hardlinks = 0 -- Matthias -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html