I have a file that I would like to do the following to.
Allow the owner to read
Allow the owner to write
Allow the owners group to read.
Would it be chmod 640 file.txt
Owner to read 400
Owner to write 200
Owners group to read 040
Rest of world do do nothing
Add these together and one obtains 640.
The question is first of all is this the correct syntax and if I want to give no permissions to everyone else
is this 0?