Bug 22353 - passwd -removing executable bit doesn't give the expected results.
passwd -removing executable bit doesn't give the expected results.
Product: Red Hat Linux
Classification: Retired
Component: binutils (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
David Lawrence
: Security
Depends On:
  Show dependency treegraph
Reported: 2000-12-15 11:14 EST by Need Real Name
Modified: 2007-04-18 12:30 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-12-15 11:14:37 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Need Real Name 2000-12-15 11:14:34 EST
I just took the RH133 course with Mr. Day at your HQ site this week and
found an item that  seemed a bit buggy.

The instructor informed us that if you were to take "execute" away from
/usr/bin/passwd, the SUID bit would go from a small 's' to a capital 'S'
thus indicating a problem. This did infact happen.

However, he also did say that neither the typical user nor root would be
able to execute /usr/bin/passwd. When I tried it though, even though the
user account wasn't able to execute /usr/bin/passwd I found that root still
could. Was he wrong? Or is this a bug? Thanks.
Comment 1 Jakub Jelinek 2000-12-15 11:23:12 EST
First of all, this is in no way related to binutils.
Second, it depends how you "took away" execute bit. If any of the
owner/group/other execute bits are set, root (passwd is owned by root:root)
is allowed to execute it.

Note You need to log in before you can comment on or make changes to this bug.