From ab76b3527cf4f657203fc80481f865ef5ec990d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Wed, 25 Jan 2017 21:40:00 +0000 Subject: Add -u param to usermod in linux_user resource when using non_unique MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- lib/chef/provider/user/linux.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/chef/provider/user/linux.rb b/lib/chef/provider/user/linux.rb index 445421ad38..99d20ae117 100644 --- a/lib/chef/provider/user/linux.rb +++ b/lib/chef/provider/user/linux.rb @@ -58,6 +58,7 @@ class Chef def usermod_options opts = [] + opts += [ "-u", new_resource.uid ] if non_unique? if updating_home? if managing_home_dir? opts << "-m" -- cgit v1.2.1