Moving /home
Matthew Flaschen
matthew.flaschen at gatech.edu
Wed Feb 21 23:55:28 UTC 2007
Andy Harrison wrote:
> 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
>
You can use the group name too.
Matt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/kubuntu-users/attachments/20070221/a1a621f3/attachment.sig>
More information about the kubuntu-users
mailing list