Topic "wrong mask on uploaded directories"

Author Message


Ahoj Martine
When I upload a directory to the server, all files inside that directory inherit the permissions which I specify in Options -> Preferences-> Transfer (rwxrwxr-x). But the directory itself has just rwxr-xr-x permissions. I am able to change the permissions by right click->preferences, but is there some way to specify the default create mask for uploaded directories?

[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27068
Location: Prague, Czechia
Ahoj Ondro,

what protocol do you use SCP or SFTP? Anyway it works for me with both protocols. Please post a log file.
Martin Prikryl

I am using SFTP protocol.
When I copy directory, it has the right mask, which I specify in options of winscp application. But when I create the directory through winscp, it has got another (755) mask. I am able to change the mask manually.

Creating directory "qqq".
Canonifying: "qqq"
Getting real path for '/! Nas vsech !/Vorel_Ondrej/qqq'
Type: SSH_FXP_REALPATH, Size: 40, Number: 32784
Type: SSH_FXP_NAME, Size: 83, Number: 32784
Real path is '/! Nas vsech !/Vorel_Ondrej/qqq'
Canonified: "/! Nas vsech !/Vorel_Ondrej/qqq"
Type: SSH_FXP_MKDIR, Size: 44, Number: 32526
Type: SSH_FXP_STATUS, Size: 21, Number: 32526
Status/error code: 0
Listing directory "/! Nas vsech !/Vorel_Ondrej".
Type: SSH_FXP_OPENDIR, Size: 36, Number: 33035
Type: SSH_FXP_HANDLE, Size: 17, Number: 33035
Type: SSH_FXP_READDIR, Size: 17, Number: 33292
Type: SSH_FXP_NAME, Size: 1043, Number: 33292
Type: SSH_FXP_READDIR, Size: 17, Number: 33548
Type: SSH_FXP_STATUS, Size: 22, Number: 33548
Status/error code: 1
Type: SSH_FXP_CLOSE, Size: 17, Number: 33796
Type: SSH_FXP_STATUS, Size: 21, Number: 33796
Status/error code: 0

I have found it....
Default umask was set to 022 on the system.
Anyway, thanks a lot for your help and quick response.

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