executable permission for all uploaded files

Advertisement

honzas7
Joined:
Posts:
1
Location:
CZ

executable permission for all uploaded files

Hi all,
I have umask set to 002 in /etc/pam.d/common-session (session optional pam_umask.so umask=002), when I connect using scp and check the umask in winscp terminal I get 002, but all uploaded files have executable (x) permission added for both user and group. Is it default behaviour to add the x permission to all files uploaded from windows using scp?
I'm aware that I can change the permission assigned to uploaded files/directories in winscp settings, but I'm just curious why it doesn't follow the umask settings?
Thanks for response

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
28,542
Location:
Prague, Czechia

It depends on your server. I would say that most ignore the umask. I do not know why x is being set.
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum