RHEL6: inconsistent behavior with chgrp and setuid / setgid bits on files

Solution Verified - Updated -

Issue

  • RHEL6.5 has inconsistent behavior with chgrp and setuid / setgid bits. A chgrp on file clears setuid bit, but chgrp does not clear setgid bit.

Environment

  • Red Hat Enterprise Linux 6
    • seen on RHEL6.5, at least kernel 2.6.32-431.32.1.el6
  • NFS or ext4 filesystem (other filesystems likely affected)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content