Puppet v2.7.209 setting permissions recursively

256 views
Skip to first unread message

Robert Rothenberg

unread,
Dec 18, 2012, 11:28:14 AM12/18/12
to puppet...@googlegroups.com
How can I get Puppet to recursively set permissions of a directory, so that the directory and all subdirectories have move 0755 but the files in the directory have mode 0644? When I use the recurse => true option, it sets the files in the directory to executable as well.


Robert Rothenberg

unread,
Dec 18, 2012, 11:30:02 AM12/18/12
to puppet...@googlegroups.com


On Tuesday, December 18, 2012 4:28:14 PM UTC, Robert Rothenberg wrote:
How can I get Puppet to recursively set permissions of a directory, so that the directory and all subdirectories have move 0755 but the files in the directory have mode 0644? When I use the recurse => true option, it sets the files in the directory to executable as well.

I should add that if I set the directories to mode 0644, then the directory and subdirectories don't have search permissions either.
 

Ellison Marks

unread,
Dec 18, 2012, 12:39:07 PM12/18/12
to puppet...@googlegroups.com
Perhaps this bug?
http://projects.puppetlabs.com/issues/10269
Though this was fixed in 2.7.7... I'm not entirely clear as to what version you're on.

jcbollinger

unread,
Dec 18, 2012, 5:00:51 PM12/18/12
to puppet...@googlegroups.com


On Tuesday, December 18, 2012 11:39:07 AM UTC-6, Ellison Marks wrote:
Perhaps this bug?
http://projects.puppetlabs.com/issues/10269
Though this was fixed in 2.7.7... I'm not entirely clear as to what version you're on.


Indeed.  There is no version 2.7.209 of Puppet -- the latest is 2.7.20.

Anyway, what you are supposed to do is leave off the execute/search bits of the mode, and let Puppet add them automatically to directories where the specified mode allows reading.  If Puppet has regressed on that behavior again then I am certain that PL would appreciate you filing a ticket.  This is the first I've heard about a second such a regression, however, so check your version.


John

jcbollinger

unread,
Dec 18, 2012, 5:02:06 PM12/18/12
to puppet...@googlegroups.com


On Tuesday, December 18, 2012 4:00:51 PM UTC-6, jcbollinger wrote:

Indeed.  There is no version 2.7.209 of Puppet -- the latest is 2.7.20.


I mean the latest in the 2.7 series, of course.  The very latest is 3.0.1, with 3.0.2 now on the horizon.


John

Reply all
Reply to author
Forward
0 new messages