Moving /home
Tez
binary_y2k2 at blueyonder.co.uk
Wed Feb 21 16:39:15 UTC 2007
Andy Harrison wrote:
>
>
> On 2/21/07, *Stew Schneider* <stew.schneider at gmail.com
> <mailto: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
Yet another way is to do:
chown -R --from=1000:501 1000:1000 /home/username
Tez
More information about the kubuntu-users
mailing list