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

default umask for tomcat

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Invalid
    • Affects Version/s: 1.2.2
    • Fix Version/s: None
    • Component/s: Jsvc
    • Labels:
      None

      Description

      hello there,

       

      I am not sure fi this is bug or on purpose.

      tomcat document says like below.

       Tomcat runs with a default umask of 0027 to maintain
          these permissions for files created while Tomcat is running (e.g. log files,
          expanded WARs, etc.).

       

      I can also check the default value of umask in the catalina.sh

      # Set UMASK unless it has been overridden
      if [ -z "$UMASK" ]; then
          UMASK="0027"
      fi
      umask $UMASK 

       

      however, if i run the tomcat using by jsvc, 0077 is applied by default.

      • unix/native/arguments.c : 176
      • args->umask = 0077;

       

      does jsvc conform the default value described in the docment?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              John Kang John Kang

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment