diff --git a/chef/cookbooks/metasploitable/recipes/apache_continuum.rb b/chef/cookbooks/metasploitable/recipes/apache_continuum.rb index c549fc6..a72d0b6 100644 --- a/chef/cookbooks/metasploitable/recipes/apache_continuum.rb +++ b/chef/cookbooks/metasploitable/recipes/apache_continuum.rb @@ -14,12 +14,12 @@ package 'openjdk-6-jdk' directory node[:apache_continuum][:install_dir] do owner 'root' group 'root' - mode 0644 + mode '0644' end remote_file "#{Chef::Config[:file_cache_path]}/#{node[:apache_continuum][:tar]}" do source "#{node[:apache_continuum][:download_url]}/#{node[:apache_continuum][:tar]}" - mode 0644 + mode '0644' end execute "extract apache continum" do diff --git a/chef/cookbooks/metasploitable/recipes/chatbot.rb b/chef/cookbooks/metasploitable/recipes/chatbot.rb index 5bc2528..28e2ddb 100644 --- a/chef/cookbooks/metasploitable/recipes/chatbot.rb +++ b/chef/cookbooks/metasploitable/recipes/chatbot.rb @@ -20,7 +20,7 @@ end cookbook_file '/tmp/chatbot.zip' do source 'chatbot/chatbot.zip' - mode 0700 + mode '0700' end execute 'unzip chatbot' do diff --git a/chef/cookbooks/metasploitable/recipes/drupal.rb b/chef/cookbooks/metasploitable/recipes/drupal.rb index 5ac3969..6d47543 100644 --- a/chef/cookbooks/metasploitable/recipes/drupal.rb +++ b/chef/cookbooks/metasploitable/recipes/drupal.rb @@ -14,12 +14,12 @@ files_path = File.join(Chef::Config[:file_cache_path], 'cookbooks', 'metasplo remote_file "#{Chef::Config[:file_cache_path]}/#{drupal_tar}" do source "#{node[:drupal][:download_url]}/#{drupal_tar}" - mode 00644 + mode '0644' end remote_file "#{Chef::Config[:file_cache_path]}/#{coder_tar}" do source "#{node[:drupal][:download_url]}/#{coder_tar}" - mode 00644 + mode '0644' end directory node[:drupal][:install_dir] do diff --git a/chef/cookbooks/metasploitable/recipes/knockd.rb b/chef/cookbooks/metasploitable/recipes/knockd.rb index fac26e7..40d10e4 100644 --- a/chef/cookbooks/metasploitable/recipes/knockd.rb +++ b/chef/cookbooks/metasploitable/recipes/knockd.rb @@ -10,12 +10,12 @@ end template '/etc/knockd.conf' do source 'knockd/knockd.conf.erb' - mode 0600 + mode '0600' end cookbook_file '/etc/default/knockd' do source 'knockd/knockd' - mode 0600 + mode '0600' end service 'knockd' do diff --git a/chef/cookbooks/metasploitable/recipes/php_545.rb b/chef/cookbooks/metasploitable/recipes/php_545.rb index 0d39ecc..65ae21b 100644 --- a/chef/cookbooks/metasploitable/recipes/php_545.rb +++ b/chef/cookbooks/metasploitable/recipes/php_545.rb @@ -28,12 +28,12 @@ end remote_file "#{Chef::Config[:file_cache_path]}/#{php_tar}" do source "#{node[:php545][:download_url]}/#{php_tar}" - mode 0644 + mode '0644' end remote_file "#{Chef::Config[:file_cache_path]}/libxml29_compat.patch" do source "https://mail.gnome.org/archives/xml/2012-August/txtbgxGXAvz4N.txt" - mode 0644 + mode '0644' end execute "extract php" do diff --git a/chef/cookbooks/metasploitable/recipes/proftpd.rb b/chef/cookbooks/metasploitable/recipes/proftpd.rb index fb9d681..cbdd64c 100644 --- a/chef/cookbooks/metasploitable/recipes/proftpd.rb +++ b/chef/cookbooks/metasploitable/recipes/proftpd.rb @@ -12,7 +12,7 @@ proftpd_tar = 'proftpd-1.3.5.tar.gz' remote_file "#{Chef::Config[:file_cache_path]}/#{proftpd_tar}" do source "#{node[:proftpd][:download_url]}/#{proftpd_tar}" - mode 0644 + mode '0644' end execute "extract proftpd" do diff --git a/chef/cookbooks/metasploitable/recipes/readme_app.rb b/chef/cookbooks/metasploitable/recipes/readme_app.rb index 0e29f54..95d6670 100644 --- a/chef/cookbooks/metasploitable/recipes/readme_app.rb +++ b/chef/cookbooks/metasploitable/recipes/readme_app.rb @@ -12,7 +12,7 @@ include_recipe 'metasploitable::nodejs' package 'git' directory '/opt/readme_app' do - mode 0644 + mode '0644' end bash "clone the readme app and install gems" do @@ -24,12 +24,12 @@ end template '/opt/readme_app/start.sh' do source 'readme_app/start.sh.erb' - mode 0700 + mode '0700' end cookbook_file '/etc/init/readme_app.conf' do source 'readme_app/readme_app.conf' - mode 0644 + mode '0644' end service 'readme_app' do diff --git a/chef/cookbooks/metasploitable/recipes/sshd.rb b/chef/cookbooks/metasploitable/recipes/sshd.rb index 8c169ac..316b736 100644 --- a/chef/cookbooks/metasploitable/recipes/sshd.rb +++ b/chef/cookbooks/metasploitable/recipes/sshd.rb @@ -6,7 +6,7 @@ cookbook_file '/etc/ssh/sshd_config' do source 'sshd/sshd_config' - mode 0644 + mode '0644' end service 'ssh' do