[x] Ignore permission errors

Advertisement

Yuuki
Guest

[x] Ignore permission errors

When I save file in editor with

[x] Upload after every save
[ ] Set permissions
[ ] Preserve timestamps
[x] Ignore permissions errors

(this file not owned by me and its OK) I get

"Upload of file was successful, but error occurred
while setting the permissions and/or timestamp. If the problem
persists, turn on 'Ignore permission errors' option."

Reply with quote

Advertisement

Guest

Currently I using version 1.6.2, but this message with such options appeared after 1.5 or so.

There is log file:
. 2009-06-01 10:31:20.032 --------------------------------------------------------------------------
. 2009-06-01 10:31:20.032 WinSCP Version 1.6.2 (Build 151) (OS 5.1.2600 Service Pack 3)
. 2009-06-01 10:31:20.032 Login time: понедельник 1 Июнь 2009 г. 10:31:20
. 2009-06-01 10:31:20.032 --------------------------------------------------------------------------
. 2009-06-01 10:31:20.032 Session name: Session1
. 2009-06-01 10:31:20.032 Host name: ****.***.** (Port: 22)
. 2009-06-01 10:31:20.032 User name: *********** (Password: No, Key file: No)
. 2009-06-01 10:31:20.032 Tunnel: No
. 2009-06-01 10:31:20.032 Transfer Protocol: SFTP (SCP)
. 2009-06-01 10:31:20.032 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2009-06-01 10:31:20.032 Proxy: none
. 2009-06-01 10:31:20.032 SSH protocol version: 2; Compression: No
. 2009-06-01 10:31:20.032 Bypass authentication: No
. 2009-06-01 10:31:20.032 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2009-06-01 10:31:20.032 Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2009-06-01 10:31:20.032 SSH Bugs: -,-,-,-,-,-,-,-
. 2009-06-01 10:31:20.032 SFTP Bugs: -,-
. 2009-06-01 10:31:20.032 Return code variable: Autodetect; Lookup user groups: Yes
. 2009-06-01 10:31:20.032 Shell: default, EOL: 0
. 2009-06-01 10:31:20.032 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2009-06-01 10:31:20.032 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2009-06-01 10:31:20.032 Local directory: C:\Documents and Settings\*****\Мои документы, Remote directory: /var/www-ssl, Update: Yes, Cache: Yes
. 2009-06-01 10:31:20.032 Cache directory changes: Yes, Permanent: Yes
. 2009-06-01 10:31:20.032 DST mode: 2
. 2009-06-01 10:31:20.032 --------------------------------------------------------------------------
. 2009-06-01 10:31:20.047 Looking up host "****.***.**"
. 2009-06-01 10:31:20.079 Connecting to **.**.***.* port 22
. 2009-06-01 10:31:20.094 Server version: SSH-2.0-OpenSSH_5.1p1 Debian-5
. 2009-06-01 10:31:20.094 We claim version: SSH-2.0-WinSCP_FAR_release_1.6.2
. 2009-06-01 10:31:20.110 SSPI: acquired credentials for: *****@**********
. 2009-06-01 10:31:20.110 Constructed service principal name 'host/****.***.**'
. 2009-06-01 10:31:20.110 GSSKEX disabled: В пакете безопасности отсутствуют учетные данные

. 2009-06-01 10:31:20.110 Using SSH protocol version 2
. 2009-06-01 10:31:20.110 Doing Diffie-Hellman group exchange
. 2009-06-01 10:31:20.188 Doing Diffie-Hellman key exchange with hash SHA-1
. 2009-06-01 10:31:20.751 Host key fingerprint is:
. 2009-06-01 10:31:20.751 ssh-rsa 2048 **:**:**:**:**:**:**:**:**:**:**:**:**:**:**:**
. 2009-06-01 10:31:20.751 Initialised AES-256 SDCTR client->server encryption
. 2009-06-01 10:31:20.751 Initialised HMAC-SHA1 client->server MAC algorithm
. 2009-06-01 10:31:20.751 Initialised AES-256 SDCTR server->client encryption
. 2009-06-01 10:31:20.751 Initialised HMAC-SHA1 server->client MAC algorithm
! 2009-06-01 10:31:20.751 Using username "************".
. 2009-06-01 10:31:20.766 Prompt (6, SSH password, , &Password: )
. 2009-06-01 10:31:22.751 Sent password
. 2009-06-01 10:31:22.766 Access granted
. 2009-06-01 10:31:22.782 Opened channel for session
. 2009-06-01 10:31:22.797 Started a shell/command
. 2009-06-01 10:31:22.797 --------------------------------------------------------------------------
. 2009-06-01 10:31:22.797 Using SFTP protocol.
. 2009-06-01 10:31:22.797 Doing startup conversation with host.
> 2009-06-01 10:31:22.797 Type: SSH_FXP_INIT, Size: 5, Number: -1
< 2009-06-01 10:31:22.813 Type: SSH_FXP_VERSION, Size: 95, Number: -1
. 2009-06-01 10:31:22.813 SFTP version 3 negotiated.
. 2009-06-01 10:31:22.813 Unknown server extension posix-rename@openssh.com=1
. 2009-06-01 10:31:22.813 Unknown server extension statvfs@openssh.com=2
. 2009-06-01 10:31:22.813 Unknown server extension fstatvfs@openssh.com=2
. 2009-06-01 10:31:22.813 We believe the server has signed timestamps bug
. 2009-06-01 10:31:22.813 We will use UTF-8 strings for status messages only
. 2009-06-01 10:31:22.813 Limiting packet size to OpenSSH sftp-server limit of 262148 bytes
. 2009-06-01 10:31:22.813 Changing directory to "/var/www-ssl".
. 2009-06-01 10:31:22.813 Getting real path for '/var/www-ssl'
> 2009-06-01 10:31:22.813 Type: SSH_FXP_REALPATH, Size: 21, Number: 16
< 2009-06-01 10:31:22.829 Type: SSH_FXP_NAME, Size: 45, Number: 16
. 2009-06-01 10:31:22.829 Real path is '/var/www-ssl'
. 2009-06-01 10:31:22.829 Trying to open directory "/var/www-ssl".
> 2009-06-01 10:31:22.829 Type: SSH_FXP_LSTAT, Size: 21, Number: 263
< 2009-06-01 10:31:22.829 Type: SSH_FXP_ATTRS, Size: 37, Number: 263
. 2009-06-01 10:31:22.829 Getting current directory name.
. 2009-06-01 10:31:22.829 Listing directory "/var/www-ssl".
> 2009-06-01 10:31:22.829 Type: SSH_FXP_OPENDIR, Size: 21, Number: 523
< 2009-06-01 10:31:22.829 Type: SSH_FXP_HANDLE, Size: 13, Number: 523
> 2009-06-01 10:31:22.829 Type: SSH_FXP_READDIR, Size: 13, Number: 780
< 2009-06-01 10:31:22.844 Type: SSH_FXP_NAME, Size: 3495, Number: 780
> 2009-06-01 10:31:22.844 Type: SSH_FXP_READDIR, Size: 13, Number: 1036
< 2009-06-01 10:31:22.860 Type: SSH_FXP_STATUS, Size: 28, Number: 1036
< 2009-06-01 10:31:22.860 Status/error code: 1
> 2009-06-01 10:31:22.860 Type: SSH_FXP_CLOSE, Size: 13, Number: 1284
. 2009-06-01 10:31:22.860 Startup conversation with host finished.
. 2009-06-01 10:31:26.626 Changing directory to "****.***.**".
. 2009-06-01 10:31:26.626 Getting real path for '/var/www-ssl/****.***.**'
> 2009-06-01 10:31:26.626 Type: SSH_FXP_REALPATH, Size: 35, Number: 1552
< 2009-06-01 10:31:26.626 Type: SSH_FXP_STATUS, Size: 24, Number: 1284
. 2009-06-01 10:31:26.626 Discarding reserved response
< 2009-06-01 10:31:26.641 Type: SSH_FXP_NAME, Size: 73, Number: 1552
. 2009-06-01 10:31:26.641 Real path is '/var/www-ssl/****.***.**'
. 2009-06-01 10:31:26.641 Trying to open directory "/var/www-ssl/****.***.**".
> 2009-06-01 10:31:26.641 Type: SSH_FXP_LSTAT, Size: 35, Number: 1799
< 2009-06-01 10:31:26.641 Type: SSH_FXP_ATTRS, Size: 37, Number: 1799
. 2009-06-01 10:31:26.641 Getting current directory name.
. 2009-06-01 10:31:26.641 Listing directory "/var/www-ssl/****.***.**".
> 2009-06-01 10:31:26.641 Type: SSH_FXP_OPENDIR, Size: 35, Number: 2059
< 2009-06-01 10:31:26.641 Type: SSH_FXP_HANDLE, Size: 13, Number: 2059
> 2009-06-01 10:31:26.641 Type: SSH_FXP_READDIR, Size: 13, Number: 2316
< 2009-06-01 10:31:26.704 Type: SSH_FXP_NAME, Size: 12633, Number: 2316
> 2009-06-01 10:31:26.704 Type: SSH_FXP_READDIR, Size: 13, Number: 2572
< 2009-06-01 10:31:26.751 Type: SSH_FXP_NAME, Size: 12771, Number: 2572
> 2009-06-01 10:31:26.751 Type: SSH_FXP_READDIR, Size: 13, Number: 2828
< 2009-06-01 10:31:26.766 Type: SSH_FXP_NAME, Size: 3291, Number: 2828
> 2009-06-01 10:31:26.766 Type: SSH_FXP_READDIR, Size: 13, Number: 3084
< 2009-06-01 10:31:26.766 Type: SSH_FXP_STATUS, Size: 28, Number: 3084
< 2009-06-01 10:31:26.766 Status/error code: 1
> 2009-06-01 10:31:26.766 Type: SSH_FXP_CLOSE, Size: 13, Number: 3332
. 2009-06-01 10:31:27.532 File: "/var/www-ssl/****.***.**/blank.php"
. 2009-06-01 10:31:27.532 Copying "/var/www-ssl/****.***.**/blank.php" to local directory started.
. 2009-06-01 10:31:27.532 Ascii transfer mode selected.
. 2009-06-01 10:31:27.532 Opening remote file.
> 2009-06-01 10:31:27.532 Type: SSH_FXP_OPEN, Size: 53, Number: 3587
< 2009-06-01 10:31:27.532 Type: SSH_FXP_STATUS, Size: 24, Number: 3332
. 2009-06-01 10:31:27.532 Discarding reserved response
< 2009-06-01 10:31:27.532 Type: SSH_FXP_HANDLE, Size: 13, Number: 3587
> 2009-06-01 10:31:27.532 Type: SSH_FXP_READ, Size: 25, Number: 4101
< 2009-06-01 10:31:27.579 Status/error code: 1
. 2009-06-01 10:31:27.594 3 skipped SSH_FXP_WRITE, SSH_FXP_READ, SSH_FXP_DATA and SSH_FXP_STATUS packets.
> 2009-06-01 10:31:27.594 Type: SSH_FXP_CLOSE, Size: 13, Number: 4612
. 2009-06-01 10:31:29.766 Copying 1 files/directories to remote directory "/var/www-ssl/****.***.**"
. 2009-06-01 10:31:29.766   PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 01; Resume: S (102400); CalcS: Yes; Mask: *.*
. 2009-06-01 10:31:29.766   TM: M; ClAr: No; CPS: 0; ExclM(No): 
. 2009-06-01 10:31:29.766   AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2009-06-01 10:31:29.766 File: "C:\DOCUME~1\*****\LOCALS~1\TEMP\FTMP000G.3R0\blank.php"
. 2009-06-01 10:31:29.766 Copying "C:\DOCUME~1\*****\LOCALS~1\TEMP\FTMP000G.3R0\blank.php" to remote directory started.
. 2009-06-01 10:31:29.766 Ascii transfer mode selected.
. 2009-06-01 10:31:29.766 Opening remote file.
> 2009-06-01 10:31:29.766 Type: SSH_FXP_OPEN, Size: 61, Number: 4867
< 2009-06-01 10:31:29.766 Type: SSH_FXP_STATUS, Size: 24, Number: 4612
. 2009-06-01 10:31:29.766 Discarding reserved response
< 2009-06-01 10:31:29.766 Type: SSH_FXP_HANDLE, Size: 13, Number: 4867
> 2009-06-01 10:31:29.766 Type: SSH_FXP_WRITE, Size: 324, Number: 5382
> 2009-06-01 10:31:29.766 Type: SSH_FXP_CLOSE, Size: 13, Number: 5636
> 2009-06-01 10:31:29.766 Type: SSH_FXP_SETSTAT, Size: 57, Number: 5129
< 2009-06-01 10:31:29.782 Type: SSH_FXP_STATUS, Size: 24, Number: 5382
< 2009-06-01 10:31:29.782 Type: SSH_FXP_STATUS, Size: 24, Number: 5636
< 2009-06-01 10:31:29.782 Status/error code: 0
< 2009-06-01 10:31:29.782 Type: SSH_FXP_STATUS, Size: 34, Number: 5129
< 2009-06-01 10:31:29.782 Status/error code: 3, Message: 5129, Server: Permission denied, Language:  
* 2009-06-01 10:31:29.782 (ETerminal) Permission denied.
* 2009-06-01 10:31:29.782 Error code: 3
* 2009-06-01 10:31:29.782 Error message from server: Permission denied
* 2009-06-01 10:31:29.782 Request code: 9
. 2009-06-01 10:31:29.782 Asking user:
. 2009-06-01 10:31:29.782 Upload of file 'blank.php' was successful, but error occurred while setting the permissions and/or timestamp. If the problem persists, turn on 'Ignore permission errors' option. ("Permission denied.
. 2009-06-01 10:31:29.782 Error code: 3
. 2009-06-01 10:31:29.782 Error message from server: Permission denied
. 2009-06-01 10:31:29.782 Request code: 9")
* 2009-06-01 10:31:32.001 (EScpSkipFile) Upload of file 'blank.php' was successful, but error occurred while setting the permissions and/or timestamp. If the problem persists, turn on 'Ignore permission errors' option.
* 2009-06-01 10:31:32.001 Permission denied.
* 2009-06-01 10:31:32.001 Error code: 3
* 2009-06-01 10:31:32.001 Error message from server: Permission denied
* 2009-06-01 10:31:32.001 Request code: 9
. 2009-06-01 10:31:33.141 Cached directory change via ".." to "/var/www-ssl".
. 2009-06-01 10:31:33.141 Getting current directory name.
. 2009-06-01 10:31:33.141 Directory content loaded from cache.
. 2009-06-01 10:31:33.141 Getting current directory name.
. 2009-06-01 10:31:33.141 Listing directory "/var/www-ssl".
> 2009-06-01 10:31:33.141 Type: SSH_FXP_OPENDIR, Size: 21, Number: 5899
< 2009-06-01 10:31:33.157 Type: SSH_FXP_HANDLE, Size: 13, Number: 5899
> 2009-06-01 10:31:33.157 Type: SSH_FXP_READDIR, Size: 13, Number: 6156
< 2009-06-01 10:31:33.172 Type: SSH_FXP_NAME, Size: 3495, Number: 6156
> 2009-06-01 10:31:33.172 Type: SSH_FXP_READDIR, Size: 13, Number: 6412
< 2009-06-01 10:31:33.172 Type: SSH_FXP_STATUS, Size: 28, Number: 6412
< 2009-06-01 10:31:33.172 Status/error code: 1
> 2009-06-01 10:31:33.172 Type: SSH_FXP_CLOSE, Size: 13, Number: 6660
. 2009-06-01 10:31:35.501 Closing connection.
. 2009-06-01 10:31:35.501 Sending special code: 12
. 2009-06-01 10:31:35.501 Sent EOF message

P.S.: Also &S and other templates not work in logging O_o

Reply with quote

martin
Site Admin
martin avatar

In the log I can see that you have the ignore permissions optino turned off ("PrR: No (No)").

The &S as similar are indded now working. They were changed to !S. But I forgot to update the help text.

Reply with quote

Guest

martin wrote:

In the log I can see that you have the ignore permissions optino turned off ("PrR: No (No)").
Here is screenshot
<invalid hyperlink removed by admin> (<invalid hyperlink removed by admin>)

Reply with quote

Advertisement

Guest

martin wrote:

When did you took the screenshot?
Today =)
Here is proof
<invalid hyperlink removed by admin> (<invalid hyperlink removed by admin>)

Reply with quote

martin
Site Admin
martin avatar

Anonymous wrote:

Today =)
OK, I mean when in terms of workflow... Where did you opened the dialog from? What did you do afterwards?

Reply with quote

Yuuki
Guest

martin wrote:

Anonymous wrote:

Today =)
OK, I mean when in terms of workflow... Where did you opened the dialog from? What did you do afterwards?
It not connected with dialog. I'm not use dialog often.
My personal feeling is when "Set permissions" turned off somehow WinSCP ignores connected with it options. So when "Ignore permission errors" greyed out due "Set permissions" turned off, no matter in what state it is, WinSCP still use it as disabled. I think it is best to make "Ignore permission errors" out of connection with state of "Set permissions".

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

Yuuki wrote:

My personal feeling is when "Set permissions" turned off somehow WinSCP ignores connected with it options. So when "Ignore permission errors" greyed out due "Set permissions" turned off, no matter in what state it is, WinSCP still use it as disabled. I think it is best to make "Ignore permission errors" out of connection with state of "Set permissions".
The flag does not have any impact when disabled. But in the log it was not disabled. It is disabled only if both preserve timestamp and preserve permissions are off. In the log I can see that preserve timestamp was on, while ignore permissions errors was off. Hence the error. Though the settings does not correspond to your dialog screenshot. That's why I ask when did you get the screenshot. Can you give me screenshot of the dialog taken from Copy dialog just before you press OK?

Reply with quote

Yuuki
Guest

martin wrote:

The flag does not have any impact when disabled. But in the log it was not disabled. It is disabled only if both preserve timestamp and preserve permissions are off. In the log I can see that preserve timestamp was on, while ignore permissions errors was off. Hence the error. Though the settings does not correspond to your dialog screenshot. That's why I ask when did you get the screenshot. Can you give me screenshot of the dialog taken from Copy dialog just before you press OK?
OK. Now I understand what you are mean. Permission error message appears during save operation in far embedded editor. Options in "WinSCP - Editor/viewer settings" dialog
[x] Allow more than one edited file
[x] Upload after every save


p.s.: While making screen shots for this post and walking options dialogs error disappeared. Now can't repeat it...

p.p.s.: Seems error disappeared after disabling "Allow more than one edited file" and "Upload after every save" and enabling "Display upload options dialog - When uploading from editor". After this I tried to save file in editor, exit from editor, entered "Transfer setting..." in appeared dialog and pressed OK without any changes. So now, when options Allow more than one edited file" and "Upload after every save" are enabled, no error appears...

Here is log:
. 2009-06-08 11:34:00.802 Copying 1 files/directories to remote directory "/var/www-ssl/****.***.**"
. 2009-06-08 11:34:00.802   PrTime: No; PrRO: No; Rght: rw-r--r--; PrR: No (Yes); FnCs: N; RIC: 00; Resume: N (102400); CalcS: Yes; Mask: 
. 2009-06-08 11:34:00.802   TM: M; ClAr: No; CPS: 0; ExclM(No): 
. 2009-06-08 11:34:00.802   AscM: *.*html; *.htm; *.txt; *.php*; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml

Reply with quote

Yuuki
Guest

Still getting this error again and again. Updating file type settings (error disappears) and getting error with another type. Again and again... Really troublesome...

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

Can you send me an email, so I can send you back a debug version of WinSCP to track the problem? Please include link back to this topic in your email. Also note in this topic that you have sent the email. Thanks.

You will find my address (if you log in) in my forum profile.

Reply with quote

Advertisement

Advertisement

Guest

The flag does not have any impact when disabled. But in the log it was not disabled. It is disabled only if both preserve timestamp and preserve permissions are off. In the log I can see that preserve timestamp was on, while ignore permissions errors was off. Hence the error. Though the settings does not correspond to your dialog screenshot. That's why I ask when did you get the screenshot. Can you give me screenshot of the dialog taken from Copy dialog just before you press OK?

Reply with quote

Advertisement

You can post new topics in this forum