Uploaded image for project: 'National Data Service'
  1. National Data Service
  2. NDS-388

Container "user" discrepancies cause file permission errors

XMLWordPrintableJSON

    • Icon: Requirement Requirement
    • Resolution: Fixed
    • Icon: Normal Normal
    • Labs Workbench - Beta
    • None
    • Backend
    • None
    • NDS Sprint 9

      Two different problems with the same root cause came up today.

      The following scenarios should be discussed to determine how to best handle the problem of file/folder permissions with respect to different users in running containers. The result of the discussion will be one or more tickets detailing how we plan to support these common developer use cases.

      Scenario A: Clowder (runs under "clowder" user)

      1. User starts Clowder container, which by default mounts their home directory under /home/user
      2. User accesses the console for Clowder
      3. User attempts to copy a file from /home/clowder to /home/user
        • cp: cannot create regular file 'path/to/file.ext': Permission denied
        • Copy operation fails, since /home/user is owned by "user" or "root", but the current user "clowder" does not have access

      Scenario B: Cloud9 (runs under "root")

      1. User starts Cloud9 container, mounting some workspace folder
      2. User creates a sub-folder with 3 files in it
      3. User checks this new folder into git
      4. Outside of the container, user checks out a different branch (without specifying "sudo")
        • "rm: cannot remove 'path/to/file.ext': Permission denied"
        • Remove operation fails, since they were created by "root" but current user is "user" or "core"

      This ticket is complete when the above scenarios have been dissected thoroughly to ensure that they can be properly handled with security and usability in mind.

              lambert8 Sara Lambert
              lambert8 Sara Lambert
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 2 hours
                  2h
                  Remaining:
                  Remaining Estimate - 2 hours
                  2h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified