summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/chef/provider/user/useradd.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/chef/provider/user/useradd.rb b/lib/chef/provider/user/useradd.rb
index 3a83c0563b..8564d9c59f 100644
--- a/lib/chef/provider/user/useradd.rb
+++ b/lib/chef/provider/user/useradd.rb
@@ -93,13 +93,11 @@ class Chef
end
def lock_user
- shell_out!("usermod", "-L", new_resource.username)
- shell_out!("chsh", "-s", "/bin/false", new_resource.username)
+ shell_out!("usermod", "-L", "-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)
+ shell_out!("usermod", "-U", "-s", new_resource.shell, new_resource.username)
end
def compile_command(base_command)