[Python-ideas] Add shutil.chown(..., recursive=False)
rosuav at gmail.com
Mon May 28 20:11:22 EDT 2018
On Tue, May 29, 2018 at 9:47 AM, Steven D'Aprano <steve at pearwood.info> wrote:
> On Mon, May 28, 2018 at 10:13:47PM +0100, Barry wrote:
>> > On 28 May 2018, at 21:23, Giampaolo Rodola' <g.rodola at gmail.com> wrote:
>> > It appears like a common enough use case to me ("chown -R path").
>> > Thoughts?
>> I wonder if it is very common.
>> Don’t you have to be root or use sudo chown?
>> In which case it is only python code running as root that could use this.
> Certainly not. You only have to be root to change permissions on files
> that you otherwise wouldn't be able to change permissions on. chmod -R
> works fine for regular users changing their own files. Why wouldn't it?
That's chmod. The OP asked about chown.
More information about the Python-ideas