Issue
How do I change owner/permission to 505 for uid and 507 for gid.
I had tried:
chmod 505:507 file/folder
but it failed.
Solution
If you're trying to change the owner/group, then you should use chown
command instead, e.g.
chown -v 505:507 file/folder
Also note that to change the ownership, you need to run as root or prefix the command with sudo
.
The chmod
is for changing the file/folder permissions.
Answered By - kenorb