Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user 'foox' do
- comment 'test me'
- uid '6711'
- home '/home/foox'
- shell '/bin/bash'
- password '<password_shadow_here>'
- end
- directory "/home/foox" do
- owner "foox"
- group "foox"
- mode 00755
- action :create
- end
- directory "/home/foox/.ssh" do
- owner "foox"
- group "foox"
- mode 00600
- action :create
- end
- file '/home/foox/.ssh/authorized_keys' do
- owner "foox"
- group "foox"
- mode "00600"
- content IO.read('/root/.ssh/authorized_keys')
- action :create
- end
Add Comment
Please, Sign In to add comment