Sample Header Ad - 728x90

scp and umask setting

9 votes
4 answers
16441 views
How do I make SCP respect umask ? I've tried adding this Subsystem sftp internal-sftp -u 0002 in /etc/ssh/sshd_config and session optional pam_umask.so umask=0002 in /etc/pam.d/sshd Any other things to try? each time scp creates the file as 644 instead of 664 as the umask would suggest
Asked by exussum (4153 rep)
Nov 13, 2013, 10:26 AM
Last activity: Sep 20, 2024, 10:52 PM