bugzilla-daemon at mindrot.org
2007-Apr-25 05:38 UTC
[Bug 1310] chmod sftp command and setgid/setuid bit
http://bugzilla.mindrot.org/show_bug.cgi?id=1310
Summary: chmod sftp command and setgid/setuid bit
Product: Portable OpenSSH
Version: -current
Platform: All
URL: http://marc.info/?t=117745570300006&r=1&w=4
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P3
Component: sftp-server
AssignedTo: bitbucket at mindrot.org
ReportedBy: eric.noulard at gmail.com
CC: eric.noulard at gmail.com
when using chmod sftp client command
it appears that setuid / setgid bits are not handled on the
server-side.
that when I
sftp> chmod 2775 afile
I would expect afile to show:
-rwxrwsr-x 1 openssh isgreat 0 2007-04-25 00:19 afile
but I get:
-rwxrwxr-x 1 openssh isgreat 0 2007-04-25 00:19 afile
just as if I had typed: "chmod 775 afile " on server-side.
As far as I understand sftp-server.c code is seems that
chmod(name, a->perm & 0777);
is responsible for this behavior.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2007-Apr-26 08:33 UTC
[Bug 1310] chmod sftp command and setgid/setuid bit
http://bugzilla.mindrot.org/show_bug.cgi?id=1310 ------- Comment #1 from frederik.deweerdt at gmail.com 2007-04-26 18:33 ------- Looks as the same bug as #1176 ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2007-Apr-26 09:01 UTC
[Bug 1310] chmod sftp command and setgid/setuid bit
http://bugzilla.mindrot.org/show_bug.cgi?id=1310
frederik.deweerdt at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |paulg at chiark.greenend.org.uk
------- Comment #2 from frederik.deweerdt at gmail.com 2007-04-26 19:01 -------
*** Bug 1176 has been marked as a duplicate of this bug. ***
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.