[chef] Re: Setting security on remote_directory files in Windows


Chronological Thread 
  • From: Jeppe Nejsum Madsen < >
  • To: " " < >
  • Subject: [chef] Re: Setting security on remote_directory files in Windows
  • Date: Thu, 27 Jun 2013 15:31:17 +0200




On Thu, Jun 13, 2013 at 2:37 PM, Jeppe Nejsum Madsen < " target="_blank"> > wrote:
Hi,

Trying to create a directory containing files from a cookbook using the following:

remote_directory root_path do
  source 'AppRoot'
  rights :full_control, 'NETWORK SERVICE', :applies_to_children => true
  recursive true
end

The directory & files are created ok, and security is set on the directory.

But the files do not get the required permissions...no mention of NETWORK SERVICE for the files.

Any clues?

/Jeppe

Strange, this works:

remote_directory root_path do
  source 'AppRoot'
end

directory root_path do
  rights :full_control, 'NETWORK SERVICE'
end

It would imagine this to be sufficient:

remote_directory root_path do
  source 'AppRoot'
  rights :full_control, 'NETWORK SERVICE'
end

But specifying rights on remote_directory doesn't work, even with the subsequent directory resource....

Bug?

/Jeppe



Archive powered by MHonArc 2.6.16.

§