I've been learning about users, groups, file permissions (chown, chgrp, chmod), etc. Anything within my home directory I can change around at will. But it seems like -- even with sudo -- there are a lot of things I can't do in other locations. Or I'm doing them wrong.
For example, if I say...
chown bill /usr/local
... I get the error message that I'm not permitted to do that, which makes perfect sense because I'm running the command in the context of my user account.
But if I do this....
sudo chown bill /usr/local
... I get no message whatsoever and the directory ownership does not change. I've noticed this lack of a message a few times -- doing sudo commands that just return right back to the prompt without any messages. So two questions: 1) why is sudo sometimes so silent? and 2) why didn't my example of changing the ownership of /usr/local (using sudo) successfully change the ownership?
Note this also doesn't work and gives no error message:
sudo chmod o+w /usr/local
(Note: I know I shouldn't be changing ownership or access rights in /usr/local -- I just wanted to see if I could and, if not why not.)