Score:1

How to add sticky bits via puppet?

ec flag

I would like to make sure the files that get added to a certain directory inherits the parent directory's permission and that permission never changes. I guess it's called sticky bit but cannot find a way to do this via puppet. Any info would be much appreciate it. I just need something beside exec to do this and I would be adding this to my init.pp. Thank you

Score:2
cn flag

IIRC, you can do this with the mode parameter on a file resource by setting the octal permissions correctly:

e.g.

file { "foo":
  path => '/home/user/foo'
  type => 'directory'
  mode => '1750'
}

or similar. Syntax not guaranteed to be correct!

If you wanted to do this on files in a directory, you could tie this in to some of the good recipes from the Puppet Cookbook, perhaps by managing the directory and any files you want and then using a resource collector to capture the unlisted files and set permissions?

ec flag
Thank you, I already have the file permission stuff straighten out. Was trying to find a way to use the sticky bit on a directory
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.