I'm a little confused on umasking. The way I was shown to do it manually is to take whatever number the umask is, say 123, turn that into binary for the permissions.
001010011
flip the bits
110101100
and then take away executability
110100100
thus I get rw-r--r--
but when I enter umask 123 myfile into the terminal and then do a ls -l myfile, I see permissions of
-r--rw-rw-
Am I missing something?
Thanks.