Uploaded image for project: 'Commons Daemon'
  1. Commons Daemon
  2. DAEMON-178

jsvc process does not take the umask of the running user. It is always 077

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.3
    • Fix Version/s: 1.0.4
    • Component/s: Jsvc
    • Labels:
      None
    • Environment:

      Ubuntu Hardy 8.0.4, jdk1.6.2

      Description

      1) create a simple implementation of the Daemon interface that writes "hello world" log files
      2) compile jsvc as described in the documentation
      3) verify that your linux user has umask != 077, by typing "umask"
      4) start jsvc with all the required CP args as described in the documentation
      5) look the log file permissions

      Expected: The permissions are not 700.
      Actual: They are 700.

      6) Modify commons-daemon/src/native/unix/native/jsvc-unix.c, replacing 077 with 022
      7) recompile jsvc
      8) repeat 4-5

      Expected: The permissions are 755.
      Actual: The permissions are 755.

      Conclusion: The jsvc process uses a hard-coded value, instead of adopting the running user's umask, as expected.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              pbuser J Miller
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: