I have a file with permission -rwxr-xr-x in Ubuntu. How can I change it to -rw-rw-r--. I played with chmod settings, but was unable to get -rw-rw-r--.
1 Answer
Either
chmod a-x,g+w fileor
chmod ug=rw,o=r fileor using octal representation
chmod 664 file