FAQ
I want to recursively set the mode of files in a directory to '0750' but
set the permissions of the directory itself to '2750'. I cannot figure out
a way to accomplish this. Is it possible?

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

  • Jcbollinger at Feb 6, 2013 at 10:23 pm

    On Wednesday, February 6, 2013 1:16:03 PM UTC-6, Byron Appelt wrote:
    I want to recursively set the mode of files in a directory to '0750' but
    set the permissions of the directory itself to '2750'. I cannot figure out
    a way to accomplish this. Is it possible?


    The File resource type does not support it, but you can accomplish it via
    an Exec. Note also that recursive file management is usually better
    avoided. If there are too many files to enumerate easily then you would
    probably be better off building a package of them (i.e. an .rpm / .deb /
    whatever) and managing them as a group via the Package resource type.


    John




    --
    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+unsubscribe@googlegroups.com.
    To post to this group, send email to puppet-users@googlegroups.com.
    Visit this group at http://groups.google.com/group/puppet-users?hl=en.
    For more options, visit https://groups.google.com/groups/opt_out.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppuppet-users @
categoriespuppet
postedFeb 6, '13 at 7:16p
activeFeb 6, '13 at 10:23p
posts2
users2
websitepuppetlabs.com

2 users in discussion

Jcbollinger: 1 post Byron Appelt: 1 post

People

Translate

site design / logo © 2022 Grokbase