Setting setuid, setgid and sticky bit by SFTP protocol



Hi!

I develop a windows SSH SFTP client and I'm currently in process of getting and setting file permissions.

I noticed that my client is unable to set setuid, setgid and sticky bit on remote file/directories. The reason for that is that in process_setstat() of OpenSSH sftp-server.c the permission is restricted to 0777 (instead of 07777). But an ordinary user can set such bits on files/directories if he is logged in.

Is there a reason to disable these special permissions by the SFTP protocol?

Thanks!
--
h.wulff
.



Relevant Pages

  • Re: Finding out if user has privileges to a diectory.
    ... still have to deal with the exception. ... Is this your only reason for wanting to perform the pre-write ... > If the user has no permissions whatsoever on the directory, ...
    (microsoft.public.dotnet.security)
  • Re: minesweeper
    ... For some reason, it won't save my best times anymore. ... expert level, I just got 164 today ) ... Its permissions ...
    (microsoft.public.windowsxp.general)
  • Re: Finding out if user has privileges to a diectory.
    ... Is this your only reason for wanting to perform the pre-write ... If the user has no permissions whatsoever on the directory, ... Given that this is a network directory, ... so you'll need to handle the same exception ...
    (microsoft.public.dotnet.security)
  • Re: Can only print as root not as local user
    ... > I have a text file with 777 permissions. ... you didn't mention are you using cups or lprng. ... that the local user ... > can print to but not this one for some reason. ...
    (RedHat)
  • Re: minesweeper
    ... "Pegasus (MVP)" wrote: ... For some reason, it won't save my best times anymore. ... expert level, I just got 164 today ) ... Its permissions ...
    (microsoft.public.windowsxp.general)