mirror of
https://github.com/rapid7/metasploitable3.git
synced 2024-09-13 00:00:48 +02:00
25 lines
372 B
Ruby
25 lines
372 B
Ruby
|
#
|
||
|
# Cookbook:: samba
|
||
|
# Recipe:: samba
|
||
|
#
|
||
|
# Copyright:: 2017, Rapid7, All Rights Reserved.
|
||
|
#
|
||
|
#
|
||
|
|
||
|
include_recipe 'metasploitable::samba'
|
||
|
|
||
|
package 'samba'
|
||
|
|
||
|
cookbook_file '/etc/samba/smb.conf' do
|
||
|
source 'samba/smb.conf'
|
||
|
end
|
||
|
|
||
|
cookbook_file '/var/lib/samba/private/passdb.tdb' do
|
||
|
source 'samba/passdb.tdb'
|
||
|
mode '0600'
|
||
|
end
|
||
|
|
||
|
service 'smbd' do
|
||
|
action [:enable, :restart]
|
||
|
end
|