Topic "Wrong permission when creating a directory"

Author Message


Hi, I'm using 4.1 beta (Build 375) with sftp on an SuSE 9.3 server.
It appears that I can't get permissions set to rwxrws--- (2770) for new directories.

Preferences-->Transfer-->Upload option is set like this:
rw-rwS--- (+x)
Thats 2660 for files but I suppose WinSCP will add the X for directories as set.

New directories just get rwxr-xr-x which is wrong since the group needs write access and others have no business in those folders.
I can enter chmod 2770 xxxxx on WinSCP's command line and this works as intended.

Where am I wrong?
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27106
Location: Prague, Czechia
Some SFTP servers (OpenSSH particularly) won't set the permissions if the special permissions are used.

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License