Hi folks,
i want to delete a file as normal user, but i fail to do it...
As normal user (on an ubuntu 12.04) I do:
mkdir d1 d2 home; touch home/f1
sudo mount -t aufs -o br=d1:home none d2
everything is fine now, until:
rm d2/f1
-- I get: not possible, operation not permitted (freely translated
mkdir d1 d2 home; touch home/f1
sudo mount -t aufs -o br=d1:home none d2
everything is fine now, until:
rm d2/f1
-- I get: not possible, operation not permitted (freely translated from
German)
I'd suggest you to check the parent dir's permission bits on every
branch.
$ ls -ld d1 home
03:42, schrieb sf...@users.sourceforge.net:
Markus Weich:
just to sum up again: as user fred2, I did: mkdir d1 d2 home; touch home/f1
as root, I did: mount -t aufs -o br=d1:home none d2
root@it1-pc40:$ find d1 d2 home -printf %h/%f %M %u %g\n
./d1 drwxr-xr-x fred2 users
d1/.wh..wh.plnk drwx
Great, you found what we want.
It must be Yama LSM and
/proc/sys/kernel/yama/protected_nonaccess_hardlinks.
Write 0 into /proc/.../protected_nonaccess_hardlinks and your rm will
succeed.
Thanks! That solves my problem!