If I change the ownership of the contents of a file and further set permissions to the content of the file, how exactly are both the operations different?
For example, if I change the ownership of the files in a directory (public_html) to only owner and group.
chown robo:wwwrobo /home/souvik/public_html
And then if I change the file permissions of the contents inside public_html such that
chmod 755 /home/souvik/public_html
In the first command, for the 'others' clearly I haven't given any ownership to the files and in the second command I am giving read and execute permission to others (chmod 755). So what will exactly happen now? If I haven't given any ownership to 'others', what's the point of giving file permission of 5 to 'others'? They don't own the file anyway.
I am asking this because I saw these two set of commands being used one after the other in an example.