Problem changing user and special sermisions

Advertisement

Guest

Problem changing user and special sermisions

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
27,209
Location:
Prague, Czechia

Re: Problem changing user and special sermisions

Shortly, does it mean that you are not able to set UID and GUID permissions with WinSCP?
_________________
Martin Prikryl

Reply with quote

Guest

Re: Problem changing user and special sermisions

martin 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

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,209
Location:
Prague, Czechia

Re: Problem changing user and special sermisions

Please post a log file.
_________________
Martin Prikryl

Reply with quote

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

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,209
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

Reply with quote

Advertisement

You can post new topics in this forum