Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-1255

Default file mode is now 0600 instead of 0644

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Done
    • Affects Version/s: PUP 2.7.24, PUP 3.4.1
    • Fix Version/s: PUP 2.7.25, PUP 3.4.2
    • Component/s: Types and Providers
    • Labels:
      None
    • Environment:

      puppet-3.4.1-1.el6.noarch

    • Template:
    • Story Points:
      1
    • Sprint:
      Week 2013-12-19 to 2014-1-2, Week 2014-1-2 to 2014-1-8

      Description

      As of Puppet 3.4.1 and 2.7.24, the default file mode when no mode is explicitly specified on a file resource has changed from 0644 to 0600. It appears from the commits (https://github.com/puppetlabs/puppet/commit/65909fbe and 691fbbeaa) that this was not the intention.

      # rpm -q puppet
      puppet-3.4.0-1.el6.noarch
      # puppet apply -e 'file { "/tmp/a": content => "foo" }'
      Notice: Compiled catalog for foreman.example.com in environment production in 0.04 seconds
      Notice: /Stage[main]/Main/File[/tmp/a]/ensure: defined content as '{md5}acbd18db4cc2f85cedef654fccc4a4d8'
      Notice: Finished catalog run in 0.07 seconds
      # ll /tmp/a
      -rw-r--r-- 1 root root 3 Dec 27 12:01 /tmp/a
       
      # rpm -q puppet
      puppet-3.4.1-1.el6.noarch
      # puppet apply -e 'file { "/tmp/a": content => "foo" }'
      Notice: Compiled catalog for foreman.example.com in environment production in 0.04 seconds
      Notice: /Stage[main]/Main/File[/tmp/a]/ensure: defined content as '{md5}acbd18db4cc2f85cedef654fccc4a4d8'
      Notice: Finished catalog run in 0.08 seconds
      # ll /tmp/a
      -rw------- 1 root root 3 Dec 27 11:58 /tmp/a
      

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                Unassigned
                Reporter:
                domcleal Dominic Cleal
              • Votes:
                2 Vote for this issue
                Watchers:
                13 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: