I am having trouble with setting up the .emacs file so that I, group and others can all read my files. I played around with C-x C-q but after I open the file and save it again only I can read/write the file. I have also used chmod +r (filename), but the problem happens again when I reload emacs. I don't want to use chmod +r everytime I edit my files. I am using Ubuntu 11.04 Codename: natty and connecting to a server that uses Mac OSX 10.5.8. I use sftp to connect to the server.
I have checked the umask on both machines and they are both 22 or 0022. I don't know if the sftp or .emacs file is causing this error. I just want to know if I am doing the whole thing wrong or something in emacs isn't setup up right.