Skip to content

Instantly share code, notes, and snippets.

@trekr5
Created March 23, 2015 18:46
Show Gist options
  • Save trekr5/d4cd96a032a819dc93e3 to your computer and use it in GitHub Desktop.
Save trekr5/d4cd96a032a819dc93e3 to your computer and use it in GitHub Desktop.
restriction of access
def svc_create_user(user,shadow_password)
user user do
supports :manage_home => true
comment "chef created service user: #{user}"
home "/home/#{user}"
shell 'usr/sbin/nologin'
action :create
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment