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

-umask input values and correlating output pid file permissions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Cannot Reproduce
    • 1.0.15
    • None
    • Jsvc
    • None
    • CentOS 6.3 64-bit

    Description

      I'm passing the following input values to the -umask flag in a bourne shell script and get the following resulting file permissions on the pid file.

      umask | file permissions on PID file
      0011 | 644
      0002 | 644
      0022 | 644
      0003 | 644
      0033 | 644
      0004 | 640
      0005 | 640
      0055 | 600
      0006 | 640
      0072 | 604
      0073 | 604

      Which I don't believe is the correct output.

      log messages from adding the -debug flag follow with the according -umask flag value

      -umask 0002 | Switching umask back to 022 from 002
      -umask 0022 | Switching umask back to 022 from 002
      -umask 0004 | Switching umask back to 022 from 002
      -umask 0072 | Switching umask back to 022 from 072
      -umask 0055 | Switching umask back to 022 from 055
      -umask 0066 | Switching umask back to 022 from 066
      -umask 0077 | Switching umask back to 022 from 077

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              inetplumber Richard Thiemann
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: