User/group still getting "Permission denied" after ACL added to directory with setfacl

Solution Verified - Updated -

Issue

  • Recursively added a default ACL to a directory in order to allow a user or group to access that directory. Afterwards, the user/group still can't access the directory, despite seeing the default ACL in getfacl output. In the following example, we are trying to give alice full access to bob's home directory, but it fails.

    [root@localhost ~]# useradd bob
    [root@localhost ~]# useradd alice
    [root@localhost ~]# setfacl -Rm d:u:alice:rwx ~bob
    [root@localhost ~]# getfacl ~bob
    # file: home/bob
    # owner: bob
    # group: bob
    user::rwx
    group::---
    other::---
    default:user::rwx
    default:user:alice:rwx
    default:group::---
    default:mask::rwx
    default:other::---
    [root@localhost ~]# su - alice
    [alice@localhost ~]$ cd ~bob
    -bash: cd: /home/bob: Permission denied
    

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