If changing the owner of file with chown command, suid and sgid are missing from file mode.

Solution Unverified - Updated -

Issue

  • If changing the owner of file with chown command, suid and sgid are missing from file mode.

    # ls -l testfile   -rwxrwsrwx 1 testusr1 testusr1  0 Nov 27 18:40 testfile
    
    # chown testusr2:testgrp testfile
    
    # ls -l testfile   -rwxrwxrwx 1 testusr2 testgrp  0 Nov 27 18:40 testfile
    

Environment

  • Red Hat Enterprise Linux

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