SFTP and file permissions.
Hopefully someone on the list has some experience with this problem I'm having. I am connecting to my remote machine via SFTP using my local username and password. However, when I create a file in my directory it is supposed to be created with 664 permissions but it's not. Instead it is being created with 644 permissions. My question is how do I change the umask of a user logging in via SFTP? I have figured it out when a user logs in via ssh and creates a file. But I think that the umask isn't being set right when the user logs in via SFTP. Hence the reason why files are being created with permissions of 644 instead of 664. Anyone know where I can or how I can fix this problem? Thanks.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Monday 2005-09-12 at 12:18 -0500, Jay Paulson wrote:
user logs in via SFTP. Hence the reason why files are being created with permissions of 644 instead of 664. Anyone know where I can or how I can fix this problem?
Perhaps: sftp - secure file transfer program ... lumask umask Set local umask to umask. - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFDJzXItTMYHG2NR9URAtyQAJ9pwLyDfcHFT/eo6LU1oiVXYvFvfQCffSSv txWLOFrJTUrwPrmGYhk1Kmk= =uWxJ -----END PGP SIGNATURE-----
participants (2)
-
Carlos E. R.
-
Jay Paulson