I'm trying to do:
chown :Users filename
And I get
chown: invalid grup: «:Users»
What am I doing wrong? Is there something I don't understand?
You are trying to keep the same user and change the group, saying chown :group
instead of chown user:group
.
The syntax is wrong, so you can either use chown
indicating the current user or directly use chgrp
instead:
chgrp Users filename
Try:
chgrp Users /path/to/filename
PS: keep in mind that "Users" is different of "users".