Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.21.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Incompatible change, Reviewed
    • Release Note:
      UNIX-style sticky bit implemented for HDFS directories. When the sticky bit is set on a directory, files in that directory may be deleted or renamed only by a superuser or the file's owner.

      Description

      Our users (especially Pig) heavily use /tmp for temporary storage.
      Permission are set to 777.

      However, this means any users can rename and also remove (by moving to .Trash) other users directories and files.
      It would be nice if we can have a sticky bit like unix.

      Copy&Pasted from manpage.

      STICKY DIRECTORIES
      When the sticky bit is set on a directory, files in that directory may be unlinked or renamed only by
      root or their owner. Without the sticky bit, anyone able to write to the directory can delete or rename
      files. The sticky bit is commonly found on directories, such as /tmp, that are world-writable.

      1. HADOOP-3953.patch
        55 kB
        Jakob Homan
      2. HADOOP-3953.patch
        62 kB
        Jakob Homan
      3. HADOOP-3953.patch
        42 kB
        Jakob Homan
      4. HADOOP-3953.patch
        39 kB
        Jakob Homan

        Issue Links

          Activity

          Benoy Antony made changes -
          Attachment stickytests [ 12491965 ]
          Benoy Antony made changes -
          Attachment permissiontests [ 12491964 ]
          Benoy Antony made changes -
          Attachment stickytests [ 12491965 ]
          Benoy Antony made changes -
          Attachment permissiontests [ 12491964 ]
          Tom White made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Robert Chansler made changes -
          Release Note Implement sticky bit for directories in HDFS. UNIX-style sticky bit implemented for HDFS directories. When the sticky bit is set on a directory, files in that directory may be deleted or renamed only by a superuser or the file's owner.
          Owen O'Malley made changes -
          Component/s dfs [ 12310710 ]
          Jakob Homan made changes -
          Release Note Implement sticky bit for directories in HDFS. Is incompatible as prior versions of Hadoop will not be able to read the persisted mode value. Implement sticky bit for directories in HDFS.
          Hadoop Flags [Reviewed, Incompatible change] [Incompatible change, Reviewed]
          Jakob Homan made changes -
          Release Note Implement sticky bit for directories in HDFS. Is incompatible as prior versions of Hadoop will not be able to read the persisted mode value.
          Hadoop Flags [Reviewed, Incompatible change] [Incompatible change, Reviewed]
          Tsz Wo Nicholas Sze made changes -
          Resolution Fixed [ 1 ]
          Fix Version/s 0.21.0 [ 12313563 ]
          Hadoop Flags [Reviewed, Incompatible change] [Incompatible change, Reviewed]
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Tsz Wo Nicholas Sze made changes -
          Hadoop Flags [Incompatible change] [Incompatible change, Reviewed]
          Jakob Homan made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Jakob Homan made changes -
          Attachment HADOOP-3953.patch [ 12397837 ]
          Jakob Homan made changes -
          Status Patch Available [ 10002 ] Open [ 1 ]
          Jakob Homan made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Jakob Homan made changes -
          Attachment HADOOP-3953.patch [ 12397358 ]
          Jakob Homan made changes -
          Status Patch Available [ 10002 ] Open [ 1 ]
          Jakob Homan made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Jakob Homan made changes -
          Status Patch Available [ 10002 ] Open [ 1 ]
          Jakob Homan made changes -
          Attachment HADOOP-3953.patch [ 12397137 ]
          Jakob Homan made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Jakob Homan made changes -
          Hadoop Flags [Incompatible change]
          Jakob Homan made changes -
          Attachment HADOOP-3953.patch [ 12397133 ]
          Arun C Murthy made changes -
          Link This issue relates to HADOOP-4487 [ HADOOP-4487 ]
          Jakob Homan made changes -
          Field Original Value New Value
          Assignee Jakob Homan [ jghoman ]
          Koji Noguchi created issue -

            People

            • Assignee:
              Jakob Homan
              Reporter:
              Koji Noguchi
            • Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development