diff options
author | artursitarski <artur.sitarski@gmail.com> | 2016-01-27 00:31:30 +0100 |
---|---|---|
committer | artursitarski <artur.sitarski@gmail.com> | 2016-01-27 00:31:30 +0100 |
commit | f1e8edaac5e7f003a5d5b01afd5c5bc9775f9494 (patch) | |
tree | 3982cd1b4e0fa8316e6d8562f5c5536386f134f6 | |
parent | 58112e1210cac991e7a9cf434c74ece0aa97414d (diff) | |
download | chef-f1e8edaac5e7f003a5d5b01afd5c5bc9775f9494.tar.gz |
Change shell for locked user.
-rw-r--r-- | lib/chef/provider/user/useradd.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/chef/provider/user/useradd.rb b/lib/chef/provider/user/useradd.rb index da6606bc14..3a83c0563b 100644 --- a/lib/chef/provider/user/useradd.rb +++ b/lib/chef/provider/user/useradd.rb @@ -94,10 +94,12 @@ class Chef def lock_user shell_out!("usermod", "-L", new_resource.username) + shell_out!("chsh", "-s", "/bin/false", new_resource.username) end def unlock_user shell_out!("usermod", "-U", new_resource.username) + shell_out!("chsh", "-s", new_resource.shell, new_resource.username) end def compile_command(base_command) |