Topic "Set GID bit is not set on folders after restart"

Author Message
lodixon
[View user's profile]

Joined: 2011-05-19
Posts: 2
I'm using the latest version of WinSCP, 4.3.2, on Windows 7 32-bit

I'd like all files and folders to be uploaded with 2660 permissions as a default. I've set that as an option in the Transfer settings dialog.

When I first load an instance of WinSCP, with a saved session with that option set, and I attempt to copy a folder from my system to the remote system, the copy dialog that comes up even indicates that it is setting the permissions rw-rwS---.

Only it sets the folders rwxrwx--- (I append the +X for folders). Strange thing is, after I open up the preferences window, even if I don't change anything, and press 'OK', the folders are uploaded with the correct permissions.

This really doesn't seem like an issue with my remote system, but I can provide you with specifications if that would make a difference.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
I believe it is actually a server-side issue. But you can post a log file anyway (showing upload of a single file only).
_________________
Martin Prikryl
lodixon
[View user's profile]

Joined: 2011-05-19
Posts: 2
(Subbed out file names, less distracting)

This is a transfer that doesn't set the setgid bit

Quote:
. 2011-05-24 09:30:38.227 Copying 1 files/directories to remote directory "#####"
. 2011-05-24 09:30:38.227 PrTime: Yes; PrRO: No; Rght: rw-rwS---; PrR: Yes (No); FnCs: N; RIC: 01; Resume: S (102400); CalcS: Yes; Mask: *.*
. 2011-05-24 09:30:38.227 TM: M; ClAr: No; CPS: 0; ExclM(No):
. 2011-05-24 09:30:38.227 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2011-05-24 09:30:38.227 File: "#####"
. 2011-05-24 09:30:38.229 Trying to open directory "#####".
> 2011-05-24 09:30:38.229 Type: SSH_FXP_LSTAT, Size: 33, Number: 7687
< 2011-05-24 09:30:38.229 Type: SSH_FXP_STATUS, Size: 24, Number: 7428
. 2011-05-24 09:30:38.229 Discarding reserved response
< 2011-05-24 09:30:38.233 Type: SSH_FXP_STATUS, Size: 29, Number: 7687
< 2011-05-24 09:30:38.233 Status code: 2, Message: 7687, Server: No such file, Language:
. 2011-05-24 09:30:38.234 Creating directory "#####".
. 2011-05-24 09:30:38.234 Canonifying: "#####"
. 2011-05-24 09:30:38.234 Getting real path for '#####'
> 2011-05-24 09:30:38.234 Type: SSH_FXP_REALPATH, Size: 33, Number: 8208
< 2011-05-24 09:30:38.234 Type: SSH_FXP_STATUS, Size: 29, Number: 8208
< 2011-05-24 09:30:38.234 Status code: 2, Message: 8208, Server: No such file, Language:
. 2011-05-24 09:30:38.234 Getting real path for '#####'
> 2011-05-24 09:30:38.234 Type: SSH_FXP_REALPATH, Size: 28, Number: 8464
< 2011-05-24 09:30:38.235 Type: SSH_FXP_NAME, Size: 57, Number: 8464
. 2011-05-24 09:30:38.235 Real path is '#####'
. 2011-05-24 09:30:38.235 Canonified: "#####"
> 2011-05-24 09:30:38.235 Type: SSH_FXP_MKDIR, Size: 36, Number: 7950
< 2011-05-24 09:30:38.236 Type: SSH_FXP_STATUS, Size: 24, Number: 7950
< 2011-05-24 09:30:38.236 Status code: 0
> 2011-05-24 09:30:38.236 Type: SSH_FXP_LSTAT, Size: 33, Number: 8711
< 2011-05-24 09:30:38.236 Type: SSH_FXP_ATTRS, Size: 37, Number: 8711
> 2011-05-24 09:30:38.236 Type: SSH_FXP_SETSTAT, Size: 41, Number: 8969
< 2011-05-24 09:30:38.237 Type: SSH_FXP_STATUS, Size: 24, Number: 8969
< 2011-05-24 09:30:38.237 Status code: 0
. 2011-05-24 09:30:38.237 File: "#####"
. 2011-05-24 09:30:38.239 Copying "#####" to remote directory started.
. 2011-05-24 09:30:38.239 Binary transfer mode selected.
. 2011-05-24 09:30:38.240 Opening remote file.
> 2011-05-24 09:30:38.240 Type: SSH_FXP_OPEN, Size: 86, Number: 9219
< 2011-05-24 09:30:38.241 Type: SSH_FXP_HANDLE, Size: 13, Number: 9219
> 2011-05-24 09:30:38.241 Type: SSH_FXP_WRITE, Size: 4121, Number: 9734
. 2011-05-24 09:30:38.484 123 skipped SSH_FXP_WRITE, SSH_FXP_READ, SSH_FXP_DATA and SSH_FXP_STATUS packets.
> 2011-05-24 09:30:38.484 Type: SSH_FXP_CLOSE, Size: 13, Number: 25860
< 2011-05-24 09:30:38.518 Type: SSH_FXP_STATUS, Size: 24, Number: 25350
< 2011-05-24 09:30:38.518 Type: SSH_FXP_STATUS, Size: 24, Number: 25606
< 2011-05-24 09:30:38.518 Type: SSH_FXP_STATUS, Size: 24, Number: 25860
< 2011-05-24 09:30:38.518 Status code: 0
> 2011-05-24 09:30:38.518 Type: SSH_FXP_RENAME, Size: 126, Number: 26130
< 2011-05-24 09:30:38.519 Type: SSH_FXP_STATUS, Size: 24, Number: 26130
< 2011-05-24 09:30:38.519 Status code: 0
> 2011-05-24 09:30:38.519 Type: SSH_FXP_SETSTAT, Size: 77, Number: 9481
< 2011-05-24 09:30:38.520 Type: SSH_FXP_STATUS, Size: 24, Number: 9481
< 2011-05-24 09:30:38.520 Status code: 0
. 2011-05-24 09:30:38.520 Listing directory "#####".
> 2011-05-24 09:30:38.520 Type: SSH_FXP_OPENDIR, Size: 27, Number: 26379
< 2011-05-24 09:30:38.550 Type: SSH_FXP_HANDLE, Size: 13, Number: 26379
> 2011-05-24 09:30:38.551 Type: SSH_FXP_READDIR, Size: 13, Number: 26636
< 2011-05-24 09:30:38.551 Type: SSH_FXP_NAME, Size: 311, Number: 26636
> 2011-05-24 09:30:38.552 Type: SSH_FXP_READDIR, Size: 13, Number: 26892
< 2011-05-24 09:30:38.553 Type: SSH_FXP_STATUS, Size: 28, Number: 26892
< 2011-05-24 09:30:38.553 Status code: 1
> 2011-05-24 09:30:38.553 Type: SSH_FXP_CLOSE, Size: 13, Number: 27140


And this is a transfer after I've viewed the transfer preferences (Changed nothing)

Quote:
. 2011-05-24 09:32:22.719 Copying 1 files/directories to remote directory "#####"
. 2011-05-24 09:32:22.719 PrTime: Yes; PrRO: No; Rght: rw-rwS---; PrR: Yes (No); FnCs: N; RIC: 01; Resume: S (102400); CalcS: Yes; Mask: *.*
. 2011-05-24 09:32:22.719 TM: M; ClAr: No; CPS: 0; ExclM(No):
. 2011-05-24 09:32:22.719 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2011-05-24 09:32:22.720 File: "#####"
. 2011-05-24 09:32:22.723 Trying to open directory "#####".
> 2011-05-24 09:32:22.723 Type: SSH_FXP_LSTAT, Size: 33, Number: 29959
< 2011-05-24 09:32:22.723 Type: SSH_FXP_STATUS, Size: 24, Number: 29700
. 2011-05-24 09:32:22.723 Discarding reserved response
< 2011-05-24 09:32:22.755 Type: SSH_FXP_STATUS, Size: 29, Number: 29959
< 2011-05-24 09:32:22.755 Status code: 2, Message: 29959, Server: No such file, Language:
. 2011-05-24 09:32:22.755 Creating directory "#####".
. 2011-05-24 09:32:22.755 Canonifying: "#####"
. 2011-05-24 09:32:22.755 Getting real path for '#####'
> 2011-05-24 09:32:22.755 Type: SSH_FXP_REALPATH, Size: 33, Number: 30480
< 2011-05-24 09:32:22.756 Type: SSH_FXP_STATUS, Size: 29, Number: 30480
< 2011-05-24 09:32:22.756 Status code: 2, Message: 30480, Server: No such file, Language:
. 2011-05-24 09:32:22.756 Getting real path for '#####'
> 2011-05-24 09:32:22.756 Type: SSH_FXP_REALPATH, Size: 28, Number: 30736
< 2011-05-24 09:32:22.757 Type: SSH_FXP_NAME, Size: 57, Number: 30736
. 2011-05-24 09:32:22.757 Real path is '#####'
. 2011-05-24 09:32:22.757 Canonified: "#####"
> 2011-05-24 09:32:22.757 Type: SSH_FXP_MKDIR, Size: 36, Number: 30222
< 2011-05-24 09:32:22.757 Type: SSH_FXP_STATUS, Size: 24, Number: 30222
< 2011-05-24 09:32:22.757 Status code: 0
> 2011-05-24 09:32:22.758 Type: SSH_FXP_LSTAT, Size: 33, Number: 30983
< 2011-05-24 09:32:22.758 Type: SSH_FXP_ATTRS, Size: 37, Number: 30983
> 2011-05-24 09:32:22.758 Type: SSH_FXP_SETSTAT, Size: 41, Number: 31241
< 2011-05-24 09:32:22.759 Type: SSH_FXP_STATUS, Size: 24, Number: 31241
< 2011-05-24 09:32:22.759 Status code: 0
. 2011-05-24 09:32:22.759 File: "#####"
. 2011-05-24 09:32:22.760 Copying "#####" to remote directory started.
. 2011-05-24 09:32:22.760 Binary transfer mode selected.
. 2011-05-24 09:32:22.761 Opening remote file.
> 2011-05-24 09:32:22.762 Type: SSH_FXP_OPEN, Size: 86, Number: 31491
< 2011-05-24 09:32:22.762 Type: SSH_FXP_HANDLE, Size: 13, Number: 31491
> 2011-05-24 09:32:22.762 Type: SSH_FXP_WRITE, Size: 4121, Number: 32006
. 2011-05-24 09:32:23.009 107 skipped SSH_FXP_WRITE, SSH_FXP_READ, SSH_FXP_DATA and SSH_FXP_STATUS packets.
> 2011-05-24 09:32:23.009 Type: SSH_FXP_CLOSE, Size: 13, Number: 46852
< 2011-05-24 09:32:23.009 Type: SSH_FXP_STATUS, Size: 24, Number: 44806
< 2011-05-24 09:32:23.009 Status code: 0
< 2011-05-24 09:32:23.011 Type: SSH_FXP_STATUS, Size: 24, Number: 45062
< 2011-05-24 09:32:23.015 Type: SSH_FXP_STATUS, Size: 24, Number: 45318
< 2011-05-24 09:32:23.018 Type: SSH_FXP_STATUS, Size: 24, Number: 45574
< 2011-05-24 09:32:23.021 Type: SSH_FXP_STATUS, Size: 24, Number: 45830
< 2011-05-24 09:32:23.024 Type: SSH_FXP_STATUS, Size: 24, Number: 46086
< 2011-05-24 09:32:23.027 Type: SSH_FXP_STATUS, Size: 24, Number: 46342
< 2011-05-24 09:32:23.028 Type: SSH_FXP_STATUS, Size: 24, Number: 46598
< 2011-05-24 09:32:23.028 Type: SSH_FXP_STATUS, Size: 24, Number: 46852
< 2011-05-24 09:32:23.028 Status code: 0
> 2011-05-24 09:32:23.028 Type: SSH_FXP_RENAME, Size: 126, Number: 47122
< 2011-05-24 09:32:23.029 Type: SSH_FXP_STATUS, Size: 24, Number: 47122
< 2011-05-24 09:32:23.029 Status code: 0
> 2011-05-24 09:32:23.029 Type: SSH_FXP_SETSTAT, Size: 77, Number: 31753
< 2011-05-24 09:32:23.030 Type: SSH_FXP_STATUS, Size: 24, Number: 31753
< 2011-05-24 09:32:23.030 Status code: 0
. 2011-05-24 09:32:23.030 Listing directory "#####".
> 2011-05-24 09:32:23.031 Type: SSH_FXP_OPENDIR, Size: 27, Number: 47371
< 2011-05-24 09:32:23.031 Type: SSH_FXP_HANDLE, Size: 13, Number: 47371
> 2011-05-24 09:32:23.032 Type: SSH_FXP_READDIR, Size: 13, Number: 47628
< 2011-05-24 09:32:23.034 Type: SSH_FXP_NAME, Size: 311, Number: 47628
> 2011-05-24 09:32:23.035 Type: SSH_FXP_READDIR, Size: 13, Number: 47884
< 2011-05-24 09:32:23.035 Type: SSH_FXP_STATUS, Size: 28, Number: 47884
< 2011-05-24 09:32:23.036 Status code: 1
> 2011-05-24 09:32:23.036 Type: SSH_FXP_CLOSE, Size: 13, Number: 48132


They look fairly similar, but the second one has a few extra lines in it. Does this help at all?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Thanks. Can you please do the same on Debug 1 level? You can email the log to me, instead of posting it.
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