Moving /home
Stew Schneider
stew.schneider at gmail.com
Thu Feb 22 01:48:05 UTC 2007
Ding ding ding! Tez wins the Kewpy Doll.
Thanks to all.
Tez wrote:
> 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