Topic "Set GID doesnt work"

Author Message
joroy

Guest


Hi,

I try to add the Set GID option in the Transfert/Upload Options/Set Permissions
but when I upload file, it doesnt work.

It does the same think if I whant to set the GID for a existing file or a directory.
And it does the same thing for Set UID and stiky bit.

Thanks
Jo
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
What does not work? Any error message?
_________________
Martin Prikryl
m

Guest


prikryl wrote:
What does not work? Any error message?


Hi!

I've the same problem --> No error message, everything looks good but nothing happens. It just does not set the GID nor UID.

m
m

Guest


m wrote:
prikryl wrote:
What does not work? Any error message?


Hi!

I've the same problem --> No error message, everything looks good but nothing happens. It just does not set the GID nor UID.

m


Hi again!

To be a bit more clear:
1.) Create a new directory NewDir
2.) Goto Properties of NewDir
3.) Set 2775 (in any combination: With/Without "Add X to directories", With/Without "Set group, owner and permissions recursively") and apply
4.) Check permissions: Everything will be set but the GID Sad

I hope that is enough information to reconstruct the problem.

Regards,
m
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Now I can reproduce that. Thanks. Note that if you use 3.8.1 ability to set permissions of new folder on its creation, the set GID works. If it helps you meanwhile.

Last edited by martin on 2006-06-27; edited 1 time in total
m

Guest


prikryl wrote:
Not I can reproduce that. Thanks. Note that if you use 3.8.1 ability to set permissions of new folder on its creation, the set GID works. If it helps you meanwhile.


You are right, my fault: I should have installed the current version first. But now, I did and it behaves still in the old way:

Creating a new dir, setting the permissions to 2775 results in 0775. Changing permissions afterwards: Same thing!

Is there a way to get some debugging information?

Best regards,
m
m

Guest


Noone is able to reproduce this error?

Is there really no way to enable debugging/logging?

m
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
m wrote:
Noone is able to reproduce this error?

I'm Smile
_________________
Martin Prikryl
m

Guest


prikryl wrote:
Now I can reproduce that. Thanks. Note that if you use 3.8.1 ability to set permissions of new folder on its creation, the set GID works. If it helps you meanwhile.


... yes, I read that you are able to reproduce it... silly question, true! But for me, version 3.8.1. does not work (like it seems to work for you).

Any Idea? Debugging-possibility?

m
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
What's your server?
_________________
Martin Prikryl
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
After some debugging, I've realized, what I have already forgot. OpenSSH SFTP server simply ignores the requests to turn on "Set GID", "Set UID" and "Sticky bit" flags. I guess you are using OpenSSH, do you? With OpenSSH it works in SCP mode only. My previous information that setting the permissions while creating new folder works was wrong. Sorry for that.
_________________
Martin Prikryl
Guest




prikryl wrote:
After some debugging, I've realized, what I have already forgot. OpenSSH SFTP server simply ignores the requests to turn on "Set GID", "Set UID" and "Sticky bit" flags. I guess you are using OpenSSH, do you? With OpenSSH it works in SCP mode only. My previous information that setting the permissions while creating new folder works was wrong. Sorry for that.


You are so right: Using SCP works!

Thank you for that information!

Greets, m
m

Guest


prikryl wrote:
What's your server?


openSSH

m
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