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

/usr/bin/touch removes the setgid bit on directories

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • Lustre 2.6.0, Lustre 2.5.2
    • Lustre 2.6.0, Lustre 2.4.2
    • Centos 6.5/Debian 6 clients, DDN Exascaler servers.
    • 4
    • 13611

    Description

      MDS/OSS are running Centos 6.4 and Lustre 2.4.2. Clients also running 2.4.2.

      Calling "touch -a" to update the atime on a directory clears the setgid bit from that directory.

      Example:

      $ mkdir foo
      $ ls -ld foo
      drwxrwx--x 2 user user 4096 Apr 17 11:47 foo
      $ chgrp group foo
      ls -ld foo
      drwxrwx--x 2 user group 4096 Apr 17 11:47 foo
      $ chmod g+s foo
      $ ls -ld foo
      drwxrws--x 2 user group 4096 Apr 17 11:47 foo
      $ touch -a foo
      $ ls -ld foo
      drwxrwx--x 2 user group 4096 Apr 17 11:47 foo

      This is unexpected behavior, and seems like a bug. I don't get this behavior on local or NFS filesystems. If it's relevant, our identity_upcall setting is "NONE"

      Thanks,
      Peter

      Attachments

        Activity

          People

            utopiabound Nathaniel Clark
            orentas Oz Rentas
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: