Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-2245

file-perms not possible if user has no directory rights

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Unconfirmed
    • Priority: (None)
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Promise type: files
    • Labels:
      None
    • Platform:
      Debian

      Description

      Hello,

      file permissions can not be set with files->perms, if the owner of the file or directory is now allowed to write in the parent directory:

      drwxr-x--- root nogroup /tmp/test1
      -rwxr-xr-x nobody nogroup /tmp/test1/test2

      when test2 is a directory, the output is:
      error: chmod failed on '/tmp/test1/test2'. (chmod: Permission denied)

      if it is a file the output is:
      error: chmod failed on '/tmp/test1/test2'. (chmod: Permission denied)
      error: chmod failed on '/tmp/test1/test2'. (chmod: Permission denied)

      The attached testcase works in 3.7.0 and 3.7.1 but fails in 3.7.2.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              r.lindner Ronny Lindner
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Summary Panel