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

Re: chmod/chown -R - maybe an ITP

On Tue, Dec 14, 1999 at 10:05:53AM +1100, Craig Sanders wrote:

>     find $@ -uid $1 | xargs chown $2

a safer version (but still vulnerable to races) is:

     find $@ -uid $1 -follow -links 1 | xargs chown $2

you could write a safe-chown program, but even that would be vulnerable
to races, since there is no atomic test-and-chown operation...it would
just reduce the window of opportunity.


craig sanders

Reply to: