Date: Sun, 9 Mar 2014 23:43:00 +0000 From: Tom Evans <tevans.uk@googlemail.com> To: "Lundberg, Johannes" <johannes@brilliantservice.co.jp> Cc: FreeBSD Current <freebsd-current@freebsd.org> Subject: Re: Error when adding user with multiple groups with bsdconfig Message-ID: <CAFHbX1K5QRVSTycLpLbE4=5q5oE4EQvbJKVas1HHW%2B9wzoSD8Q@mail.gmail.com> In-Reply-To: <CAASDrV=7zZstRJcVDEvXZC%2BDsZ40V=56xJ8uVGq%2BnzYc9dKMrw@mail.gmail.com> References: <CAASDrV=7zZstRJcVDEvXZC%2BDsZ40V=56xJ8uVGq%2BnzYc9dKMrw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jan 10, 2014 at 12:37 AM, Lundberg, Johannes <johannes@brilliantservice.co.jp> wrote: > Hi > > I'm on 11-CURRENT amd64. I wanted to add a user using "bsdconfig" but got > an error when adding to several groups. > > Error message: > ERROR!: pw > pw: group `wheel daemon operator dialer network` does not exist. > > Creating a user who is only added to one group (for example wheel) works > fine. > > I have submitted a PR. What command line did you use? A user can only have one primary group (-g), but can be in multiple groups (-G). -g group Set the account's primary group to the given group. gro= up may be defined by either its name or group number. -G grouplist Set additional group memberships for an account. groupl= ist is a comma, space or tab-separated list of group names or group numbers. The user's name is added to the group lists in /etc/group, and removed from any groups not specified in grouplist. Note: a user should not be added to their pri=E2=80= =90 mary group with grouplist. Also, group membership changes do not take effect for current user login sessions, requir=E2=80= =90 ing the user to reconnect to be affected by the changes. Cheers Tom
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFHbX1K5QRVSTycLpLbE4=5q5oE4EQvbJKVas1HHW%2B9wzoSD8Q>