Why link resource doesn't have permission mode?


#1

the past few days I have been banging my head to the wall to solve a weird
ssh problem,
finally I found out chef creates all the links with permission 777 ( which
no decent SELinux would be happy with that)

so why link resource doesn’t have permission mode in it ? is Chef open to
PullRequest if someone wants to add it ?

Best,
Medya

P.s:
read more about the weirdest SSH problem here


#2

On 2015-03-17 12:42, Medya wrote:

the past few days I have been banging my head to the wall to solve a weird
ssh problem,
finally I found out chef creates all the links with permission 777 ( which
no decent SELinux would be happy with that)

so why link resource doesn’t have permission mode in it ?

If I understand you correctly, you want to change the permission mode of a
symlink. You can use the mode attribute for that:

link ‘/…’ do
to '…'
mode '0700’
end

https://docs.chef.io/resource_link.html#attributes

is Chef open to PullRequest if someone wants to add it ?

Yes, it is:


Xabier de Zuazo