[Labs-l] Permissions issue

Marc A. Pelletier marc at uberbox.org
Sat Jun 4 16:40:43 UTC 2016


On 2016-06-04 12:06 PM, Huji Lee wrote:
> Is the source code of this "take" script somewhere public? I wonder 
> how it works.

It's in git: 
https://phabricator.wikimedia.org/diffusion/LTOL/browse/master/src/take.cc

It works because it does the chown as root; but most of the code is 
security rather than the actual work.  :-)

-- Marc




More information about the Labs-l mailing list