Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-2185

setfacl not working correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Minor
    • None
    • Lustre 2.1.3
    • None
    • sles11sp1 2.1.3 (NASA version) client with 2.1.2 (NAS version) server bits
    • 3
    • 5226

    Description

      looked at LU-974, but not exactly the same problem.

      I did one test on lustre and the same test on /tmp (ext3). Started by clearing out all
      setfacl's using "setfacl -R -b" on top level directory before each example is started.

      =================
      lustre filesystem
      =================

      [client1:workdir]$ pwd
      /nobackup/workdir
      [client1:workdir]$ setfacl -M setfacl.jdk .
      [client1:workdir]$ ls -ld ../workdir/
      drwxrwxr-x+ 5 user2 g26137 4096 Oct 5 13:10 ../workdir/

      [client1:workdir]$ mkdir test1
      [client1:workdir]$ touch test1/file1
      [client1:workdir]$ getfacl test1/

      1. file: test1
      2. owner: user2
      3. group: g26137
        user::rwx
        user:user1:rwx #effective:---
        user:user2:rwx #effective:---
        user:user3:rwx #effective:---
        user:user4:rwx #effective:---
        group::rwx #effective:---
        mask::---
        other::---
        default:user::rwx
        default:user:user1:rwx
        default:user:user2:rwx
        default:user:user3:rwx
        default:user:user4:rwx
        default:group::rwx
        default:mask::rwx
        default:other::r-x

      [client1:workdir]$ getfacl test1/file1

      1. file: test1/file1
      2. owner: user2
      3. group: g26137
        user::rw-
        user:user1:rwx #effective:---
        user:user2:rwx #effective:---
        user:user3:rwx #effective:---
        user:user4:rwx #effective:---
        group::rwx #effective:---
        mask::---
        other::---

      setfacl file used:
      [client1:workdir]$ cat setfacl.jdk

      1. file: workdir
      2. owner: user2
      3. group: g26137
        user::rwx
        user:user1:rwx
        user:user2:rwx
        user:user3:rwx
        user:user4:rwx
        group::rwx
        mask::rwx
        other::r-x
        default:user::rwx
        default:user:user1:rwx
        default:user:user2:rwx
        default:user:user3:rwx
        default:user:user4:rwx
        default:group::rwx
        default:mask::rwx
        default:other::r-x

      =================
      tmp/ext3 filesystem
      =================

      [client1:workdir]$ pwd
      /tmp/workdir
      [client1:workdir]$ setfacl -M setfacl.jdk .
      [client1:workdir]$ ls -ld ../workdir/
      drwxrwxr-x+ 5 user2 g26137 4096 Oct 5 13:10 ../workdir/

      [client1:workdir]$ mkdir test2
      [client1:workdir]$ touch test2/file2
      [client1:workdir]$ getfacl test2

      1. file: test2
      2. owner: user2
      3. group: g26137
        user::rwx
        user:user1:rwx
        user:user2:rwx
        user:user3:rwx
        user:user4:rwx
        group::rwx
        mask::rwx
        other::r-x
        default:user::rwx
        default:user:user1:rwx
        default:user:user2:rwx
        default:user:user3:rwx
        default:user:user4:rwx
        default:group::rwx
        default:mask::rwx
        default:other::r-x

      [client1:workdir]$ getfacl test2/file2

      1. file: test2/file2
      2. owner: user2
      3. group: g26137
        user::rw-
        user:user1:rwx #effective:rw-
        user:user2:rwx #effective:rw-
        user:user3:rwx #effective:rw-
        user:user4:rwx #effective:rw-
        group::rwx #effective:rw-
        mask::rw-
        other::r--

      setfacl file used:
      [client1:workdir]$ cat setfacl.jdk

      1. file: workdir
      2. owner: user2
      3. group: g26137
        user::rwx
        user:user1:rwx
        user:user2:rwx
        user:user3:rwx
        user:user4:rwx
        group::rwx
        mask::rwx
        other::r-x
        default:user::rwx
        default:user:user1:rwx
        default:user:user2:rwx
        default:user:user3:rwx
        default:user:user4:rwx
        default:group::rwx
        default:mask::rwx
        default:other::r-x
        =================

      Let me know if you need more information.

      jdk

      Attachments

        Issue Links

          Activity

            People

              yujian Jian Yu
              qm137 James Karellas (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: