Uploaded image for project: 'OpenDJ'
  1. OpenDJ
  2. OPENDJ-3579

Setting Logfile permissions with dsconfig has no effect on Windows

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.0.0, 3.5.1, 3.0.0, 2.6.4
    • Fix Version/s: None
    • Labels:
    • Environment:
      Windows 2012/2008
    • Support Ticket IDs:

      Description

      dsconfig on windows fails to set the specified log file permissions.

      When "Windows/NTFS" calls PosixFileAttributeView, it gets a null back, effectively skipping setting the permissions completely

          PosixFileAttributeView posix = Files.getFileAttributeView(filePath, PosixFileAttributeView.class);
      

      Given: File permissions before:

      ??../logs/access NT AUTHORITY\SYSTEM:(I)(F)
                     BUILTIN\Administrators:(I)(F)
                     BUILTIN\Users:(I)(RX)
      
      Successfully processed 1 files; Failed processing 0 files
      

      When dsconfig sets the permissions to 777 (anything):

      rem dsconfig session start date: 14/Dec/2016:19:01:43 +0000
      
      rem Session operation number: 1
      rem Operation date: 14/Dec/2016:19:02:33 +0000
      dsconfig set-log-publisher-prop --publisher-name "File-Based Access Logger" --set "log-file-permissions:777" --no-prompt
      

      Then: File permissions after: permissions have not changed.

      ??../logs/access NT AUTHORITY\SYSTEM:(I)(F)
                     BUILTIN\Administrators:(I)(F)
                     BUILTIN\Users:(I)(RX)
      
      Successfully processed 1 files; Failed processing 0 files
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              lee.trujillo Lee Trujillo
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: