Luke Schierer wrote: > Does anyone have a puppet recipe that would remove extraneous > permissions on files and directories without explicitly setting what > the permissions should be? I have an application that creates and > manipulates a bunch of temp files and directories under /tmp, and I'd > like to remove the unneeded world read and world write permissions > these files get. However, the directories should have execute > permissions that the files do not need, and I would rather not set. > I could do > > file { "/tmp/toplevel": > mode => 770, > recurse => true, > } > > but as I said, I would rather not set the execute bit on files that do > not need it, it seems messy.
use exec { "chmod -R o-a /tmp/toplevel": ... } You'll need to do the work (recursing, etc) anyways everytime puppet runs. Regards, DavidS --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---