Steven D'Aprano wrote:
But it doesn't matter: regular users can call chown -R:

Only if you're not actually telling it to change anything.

% ls -l foo.txt
-rw-r--r--  1 greg  users  1 29 May 18:19 foo.txt
% chown greg foo.txt
% chown fred foo.txt
chown: foo.txt: Operation not permitted

So you have to be root in order to do anything *useful*
with it.

--
Greg

_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to