Issue #15213 has been updated by Eric Shamow.

Status changed from Unreviewed to Investigating

Haus,

True re Wikipedia, but from the Style Guide:

    File modes should be represented as 4 digits rather than 3, to explicitly 
show that they are octal values.
    
And we advise people to do so to ensure they aren't messing around with 
suid/setgid bits as well.  The code coming out of puppet resource should be 
able to pass puppet-lint :)

-Eric
----------------------------------------
Bug #15213: puppet resource file /etc/sudoers output contains 3 octal mode 
instead of 4
https://projects.puppetlabs.com/issues/15213#change-65788

Author: Kevin R. Raney
Status: Investigating
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected Puppet version: 
Keywords: 
Branch: 


[root@training manifests]# puppet resource file /etc/sudoers 
file { '/etc/sudoers':
  ensure  => 'file',
  content => '{md5}f298d1064df9009a1603d76ed90ed90f',
  ctime   => 'Mon Jun 25 13:39:50 +0000 2012',
  group   => '0',
**  mode    => '440',**
  mtime   => 'Mon Jun 25 13:39:50 +0000 2012',
  owner   => '0',
  type    => 'file',
}


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to