daily pastebin goal
63%
SHARE
TWEET

Untitled

a guest Jan 12th, 2018 40 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. user 'foox' do
  2.   comment 'test me'
  3.   uid '6711'
  4.   home '/home/foox'
  5.   shell '/bin/bash'
  6.   password '<password_shadow_here>'
  7. end
  8.  
  9. directory "/home/foox" do
  10.   owner "foox"
  11.   group "foox"
  12.   mode 00755
  13.   action :create
  14. end
  15.  
  16. directory "/home/foox/.ssh" do
  17.   owner "foox"
  18.   group "foox"
  19.   mode 00600
  20.   action :create
  21. end
  22.  
  23. file '/home/foox/.ssh/authorized_keys' do
  24.   owner "foox"
  25.   group "foox"
  26.   mode "00600"
  27.   content IO.read('/root/.ssh/authorized_keys')
  28.   action :create
  29. end
RAW Paste Data
Top