Customized Home directory ownership is changing automatically to its original after login.

Solution Verified - Updated -

Issue

  • User's Home directory ownership is changing automatically to its original after login.
  • Example:

    • with a new user testuser and the ownerships of homefolder /home/testuser changed to root:testuser instead of testuser:testuser
    • after a login (with ssh or su) with testuser, the ownership is reverted back to owner testuser:testuser again instead of root.
  • Test example:

    # getent passwd testuser
    testuser:x:5030:5068::/home/testuser:/bin/bash
    
    # ls -ld /home/testuser
    drwx------. 2 testuser testuser 4096 Nov  5 20:52 /home/testuser
    
    # chown root /home/testuser
    
    # ls -ld /home/testuser
    drwx------. 2 root testuser 4096 Nov  9 20:52 /home/testuser
    
    # ssh testuser@server1
    testuser@server1's password: 
    
    $ cd ..
    $ ls -ld testuser
    drwx------. 2 testuser testuser 4096 Nov  9 20:52 testuser
    

Environment

  • Red Hat Enterprise Linux
  • pam, windbind

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