From 7bed1307e13b96b06ace3e70aae9b037e8595a7c Mon Sep 17 00:00:00 2001 From: Jonathan Boulle Date: Wed, 7 May 2014 14:06:51 -0700 Subject: [PATCH] fix(user): user correct primary group flag for useradd --- system/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/user.go b/system/user.go index 79746cd..9e627f0 100644 --- a/system/user.go +++ b/system/user.go @@ -53,7 +53,7 @@ func CreateUser(u *User) error { } if u.PrimaryGroup != "" { - args = append(args, "--primary-group", u.PrimaryGroup) + args = append(args, "--gid", u.PrimaryGroup) } if len(u.Groups) > 0 {