Linux file permission changed after using sftp -


when using sftp upload files machine machine b, permission changed after transport.

file in machine has permission 777 (the user's umask 0022) , after upload, file permission became 755 (the user's umask in machine b 0002).

so question is: why permission changed? did change depend on settings in linux? if so, depend on , how can change settings?

sftp can preserve permissions if specially ask client (-p switch sftp command line tool). not default.

also server needs configured accept these permissions, because configured umask, users not creating open files. users umask not have enforced. there -u switch sftp-server, forces umask regardless user-one.

to answer fully, have see full debug log and/or server configuration.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -