Programming => Operating Systems => Linux => Topic started by: AlexTP on June 17, 2021, 09:12:07 pm
Title: Get/set Unix file 'owner'?
Post by: AlexTP on June 17, 2021, 09:12:07 pm
CudaText runs 'pkexec /bin/cp old_filename new_filename'. It works OK but the owner of that file changes from 'root' to my name. Can I change the owner of a file? Can I read the owner of a file?
Title: Re: Get/set Unix file 'owner'?
Post by: winni on June 17, 2021, 09:37:41 pm
Hi!
The unit BaseUnix has a wapper for the Unix command chown: