Windows basic file permission error on some computers

22 views
Skip to first unread message

jmp242

unread,
Jul 28, 2015, 10:02:23 AM7/28/15
to Puppet Users
I'm using basic file permissions with puppet 3.8.1 on Windows 7 x64. I've got a resource:
file { 'chocolatey.config':
        path    
=> "C:/ProgramData/chocolatey/config/chocolatey.config",
        content
=> template('yum/chocolatey.config.erb'),
        owner  
=> 'SYSTEM',
       
group   => 'Administrators',
        mode    
=> '0775',
       
ensure  => present,
       
require => Exec['chocolatelyinstall'],
     
}

For a limited set of computers, I'm getting

change from {md5}eedc18d21cf625bb6c04902e8a9dd409 to {md5}4efbb2600ee773122152faec7ae80934 failed: Failed to set group to 'S-1-5-32-544': Failed to initialize ACL: The parameter is incorrect.

This seems pretty strange to me - doing the above has always worked before, and works on most computers. How might I go about debugging or fixing this?

Rob Reynolds

unread,
Jul 29, 2015, 5:16:48 PM7/29/15
to puppet...@googlegroups.com
We recommend using the acl[1] resource for managing permissions on Windows. For debugging what you currently have, the best thing to do is start with the Puppet source[2] starting at the 3.8.1 tag and writing a test that recreates the above scenario and your expected output. Then use pry in places to determine what it is doing. 

You can also research any known bugs with mode and Windows in the 3.x series that were either resolved in 4.x or still exist. HTH

 

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/85556532-7790-48ba-830b-32a0b7d96e85%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Rob Reynolds
Developer, Puppet Labs

PuppetConf 2015 is coming to Portland, Oregon! Join us October 5-9.
Register now to take advantage of the Early Bird discount save $249!
Reply all
Reply to author
Forward
0 new messages