file permissions changed after sftp
Hi all,
I have this file with a permission of 664. After I transferred the file using Code:
sftp user1@server Code:
put file I would like to know why the file permission was changed. Is this the default umask of user1 on the other server? If so, how can we override this behavior such that the file permission of all files transferred is preserved? Thanks! |
Hi,
I don't use sftp (prefer rsync over ssh), but the sftp man page indicates that the -p or -P flags will preserve the permissions. Evo2. |
Quote:
Thank again! |
Hi,
I'm not aware of any ssh configuration that could do this. umask is the most likely, but it could also be acl. Evo2. |
may be this is default umask defined for ftp.. check you configuration.
|
All times are GMT -5. The time now is 04:59 AM. |