I need to control the transferring of files on my server. Some files are sent through scp to my server and I want such a files to have a specific set of permissions let's say 770. I tried pam_umask.so
in /etc/pam.d/login
and setting umask
in /etc/profile
but it seems to not work.
Which is the best way on Linux to force an umask for files transferred via scp?
Regards, Andrea