[Cialug] Need assistance with chown and find commands

Nicolai nicolai-cialug at chocolatine.org
Thu Dec 19 14:05:14 CST 2013


On Thu, Dec 19, 2013 at 02:01:05PM -0600, Dave Weis wrote:
> Your way was dangerous because it didn't sanitize the arguments.

This is why people should use something like

find . -user bob -print0 | xargs -0 chown alice:alice

if they have to pass output of find to something else.

BTW I'm curious why running this command is necessary.  Why not fix the
software creating files under the wrong user?

Nicolai


More information about the Cialug mailing list