[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: rm files owned by root?



In article <[🔎] 87652fwplt.fsf@becket.becket.net> you wrote:
> Removing a directory requires write permission on the directory
> itself, because you have to delete the "." and ".." links inside the
> directory.

no:

3root@calista:~# mkdir /home/test
3root@calista:~# chmod 0 /home/test
3root@calista:~# ls -ld /home /home/test
drwxrwxr-x  12 root adm 123 Jan  2 22:12 /home/
d---------  2  root root  6 Jan  2 22:14 /home/test/
3root@calista:~# exit
2ecki@calista:~> id
uid=1001(ecki) gid=1001(ecki) groups=0(root),4(adm),20(dialout),24(cdrom),29(audio),38(list),1001(ecki)
2ecki@calista:~> rmdir /home/test

Greetings
Bernd



Reply to: