[Bug 1310] chmod sftp command and setgid/setuid bit
bugzilla-daemon at mindrot.org
bugzilla-daemon at mindrot.org
Wed Apr 25 15:38:30 EST 2007
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.
More information about the openssh-bugs
mailing list