Moving /home

Andy Harrison aharrison at gmail.com
Wed Feb 21 16:31:39 UTC 2007


On 2/21/07, Stew Schneider <stew.schneider at gmail.com> wrote:
>
> >
> > find * -group 501 -exec chgrp '{}' 1000 ';'
>

First, don't use asterisk, this will skip hidden directories.  Second, the
filename has to come AFTER the group...

Try this:

   find /home/username -group 501 -exec chgrp 1000 {} \;

Or, better:

   find /home/username -group 501 -print0 | xargs -0 chgrp 1000

-- 
Andy Harrison
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/kubuntu-users/attachments/20070221/1374047c/attachment.html>


More information about the kubuntu-users mailing list