Topic "Problem changing user and special sermisions"

Author Message
Guest




Hi,

I'm using WinSCP to acces a linux-box via scp.
There is annoying bug when changing user and the special permissions.

Steps to reproduce:
* select a file permisions = 0644 user "a" group "a"
* F9 for properties
* change user and group to "b" and user and group permisions to x and UID and GUID (6754)
* OK
-> after that user, group and permission x is set, BUT no UID or GUID

verion: 3.7.4
protocol: scp
Interface style: Norton commander

Hope I cold help
and sorry for my english
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Shortly, does it mean that you are not able to set UID and GUID permissions with WinSCP?
_________________
Martin Prikryl
Guest




prikryl wrote:
Shortly, does it mean that you are not able to set UID and GUID permissions with WinSCP?
setting UID/GUID works, but changing user/group AND setting UID/GUID doesn't work at the same time
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Please post a log file.
_________________
Martin Prikryl
Guest




. 2005-09-01 01:46:31.460 Changing properties of "file" (No)
. 2005-09-01 01:46:31.460 - mode: "u+rwxs,g+rwxs,o+r-wxt"
. 2005-09-01 01:46:31.460 - group: "bin"
. 2005-09-01 01:46:31.460 - owner: "bin"
> 2005-09-01 01:46:31.470 chmod 6774 "file" ; echo "WinSCP: this is end-of-file:$?"
< 2005-09-01 01:46:31.521 WinSCP: this is end-of-file:0
> 2005-09-01 01:46:31.521 chgrp "bin" "file" ; echo "WinSCP: this is end-of-file:$?"
< 2005-09-01 01:46:31.581 WinSCP: this is end-of-file:0
> 2005-09-01 01:46:31.581 chown "bin" "file" ; echo "WinSCP: this is end-of-file:$?"
< 2005-09-01 01:46:31.641 WinSCP: this is end-of-file:0
. 2005-09-01 01:46:31.641 Listing current directory.
> 2005-09-01 01:46:31.641 ls -la --full-time ; echo "WinSCP: this is end-of-file:$?"
< 2005-09-01 01:46:31.711 total 48
< 2005-09-01 01:46:31.711 drwxr-xr-x 2 root root 4096 2005-09-01 01:44:39.000000000 +0200 .
< 2005-09-01 01:46:31.711 drwxr-xr-x 17 root root 4096 2005-09-01 01:39:24.000000000 +0200 ..
< 2005-09-01 01:46:31.711 -rwxrwxr-- 1 bin bin 37770 2003-07-27 20:24:46.000000000 +0200 file
< 2005-09-01 01:46:31.711 WinSCP: this is end-of-file:0
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
OK, it seems that chgrp clears the UID/GUID permissions. So solution would be to switch order of chmod and chgrp/chown calls.
_________________
Martin Prikryl
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