[Klug-general] A cli for bulk owner changes?
MacGyveR
macgyver at thedumbterminal.co.uk
Fri Oct 21 19:46:50 UTC 2011
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.
More information about the Kent
mailing list