bug-fileutils
[Top][All Lists]
Advanced

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

Re: chown --from


From: Bob Proulx
Subject: Re: chown --from
Date: Wed, 7 Nov 2001 21:44:01 -0700

> Well, not exactly a bug I think. There is an option '--from' mentioned in my 
> man pages (Suse 7.2), but I couldn't find it mentioned on the web.

Not commenting on chown functionality but supplying a (perhaps better
because more portable) workaround.

> address@hidden:~/temp > chown -v --from=saso:users saso:saso cobiss

Try this?

  find ./cobis -user saso -group users -print | xargs chown saso:saso

And if you are using the GNU version use the extensions for robustness.

  find ./cobis -user saso -group users -print0 | xargs -0r chown saso:saso

The 'find' command is much better at searching the filesystem and
implementing control flow.

Bob



reply via email to

[Prev in Thread] Current Thread [Next in Thread]