[Klug-general] A cli for bulk owner changes?
Michael E. Rentell
michael.rentell at ntlworld.com
Sat Oct 22 09:05:32 UTC 2011
Excellent. Very very many thanks for that Mike. It worked perfectly and
now I can use my email again from my own user desk instead of popping up
the cli and doing it via sudo.
Super service.
MikeR
On 21/10/11 20:46, MacGyveR wrote:
> On Friday 21 October 2011 17:06:11 Mike Evans wrote:
>> This is exactly the sort of job where the command line is your friend -
>> and that is equally so in Windows/DOS also.
>>
>> chown and chgrp will help you.
>>
>> Assuming you want everything under /home/user to belong to user do
>>
>> sudo chown -R user /home/user
>> sudo chgrp -R user /home/user
>>
>> at least I think that's it - check the manual page as I don't have time
>> to do that right at the moment and this is from memory.
>>
>> man chown
>>
>> for example.
>>
>> Mike
>>
>> _______________________________________________
>> Kent mailing list
>> Kent at mailman.lug.org.uk
>> https://mailman.lug.org.uk/mailman/listinfo/kent
>
> You can just use one command:
>
> sudo chown user: -R /home/user
>
> As the ":" in the live above, sets the primary group of the user specified.
>
> _______________________________________________
> Kent mailing list
> Kent at mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/kent
>
More information about the Kent
mailing list