SFTP and umask. Where can I find pam_umask for FreeBSD?

Thank you toddnni. That worked great!

Though I have another problem, and thats understanding umask values. What I want to set is 660(rw-rw----). If I understand umask correctly, its 777-660 = 117? But this give me a completely different permission.
 
A file has a default permission of '666', a directory has a default permission of '777'. So pick the right umask with that in mind. If you want files to be created with 660, it's 666-660 -> umask 006 (default is 022, which results in 644 for files and 755 for directories).
 
Back
Top