I got into a lot of trouble when changing the permission of a folder
myfolder residing in
I issued the command
sudo chown -R luca:luca /myfolder/.*
My intention was to change ownership of all the hidden files in
Unfortunately I realized that also the ownership of
/ was changed, which of course left me with a broken system. I think this happened because
.*, but still seems weird to me.
Is changing the parent directory the correct behaviour or should I file a bug report?
If it was my mistake in using chown, what are the best practices to use to prevent changing the ownership of system folders and files?