Tag Info

New answers tagged


AFAIK, scp does not initialize a shell, thus don't source any file such as .profile, .bashrc, /etc/profile. So the only way of doing this seems to use the pam module pam_umask.so. But it will be applied to all users (unless you use a more complicated PAM setup) The file /etc/pam.d/sshd is probably the best place to do it, if you want to limit this behavior ...

Top 50 recent answers are included