Topic "Permissions as set by cygwin's chmod not being copied"

Author Message
laggingreflex
[View user's profile]

Joined: 2015-01-03
Posts: 8
I'm using `WinSCP.com /command keepuptodate` to keep a folder in sync with a server. I have several `.sh` script files which should have `+x` permissions and I've set them as such using cygwin's `chmod` and they indeed show `+x` when using cygwin's `ls`, but when the file is transferred by WinSCP it doesn't have the same permissions on the server. Also changing the permissions doesn't trigger `keepuptodate`.

Is it possible to sync permissions?
Advertisements
laggingreflex
[View user's profile]

Joined: 2015-01-03
Posts: 8
Just to clarify, I'm setting `+x` permission on a new file on my Windows machine and expecting that the `+x` permission will be copied to the remote server. But the file on the server only has +r permissions and I have to manually `chmod +x` on the server. After that it's fine, it doesn't unset the remote file's `+x` after further changes to the file are synced. I'm guessing the current default behavior is not to alter permissions at all on the server, or to leave the permissions as they were on the server for a file if it already existed, right?

So is it possible to actually keep the file permissions in sync also?

I also wouldn't want to use `-permissions=0777` on all files, I just want it to copy the files' original permissions as set by cygwin on windows (client) to the server.
laggingreflex
[View user's profile]

Joined: 2015-01-03
Posts: 8
Ahh never mind, further searching tells me it might not actually be possible http://stackoverflow.com/questions/15761461/setting-file-permissions-when-uploading-with-ftp-protocol-in-winscp. [/url]
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
The primary problem that WinSCP as a native Windows application is not aware of Cygwin permissions.
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License