Default user groups

Chris Smart mail at christophersmart.com
Thu Feb 10 22:38:55 UTC 2011


On Fri, Feb 11, 2011 at 9:35 AM, Rick Stevens <ricks at nerd.com> wrote:
> /etc/default/useradd contains the values used to fill out the "useradd"
> command if you don't put in the options, but it doesn't supply anything
> for the "-G|--groups" option of useradd.  You still need to add that
> option to the command.

Yeah, that's what I discovered :-) It would make a great enhancement,
I think. Might put in an RFE.

>
> You could alias useradd:
>
>        alias myuseradd="useradd -G 20,63,1010,2020"
>
> then when you use "myuseradd", the user added will have the specified
> supplemental groups added to him/her.

Thanks :-)

-c


More information about the users mailing list