Re: Default user groups

2011-02-10 Thread Chris Smart
On Fri, Feb 11, 2011 at 9:35 AM, Rick Stevens 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.

Re: Default user groups

2011-02-10 Thread Rick Stevens
On 02/10/2011 12:35 PM, Chris Smart wrote: > On Fri, Feb 11, 2011 at 6:18 AM, g wrote: > hey g >> >> consider /etc/default/useradd; >> >> Â # useradd defaults file >> Â GROUP=100,20,63,1010,2020 > > Thanks, but I actually tried this and it didn't work because it treats > them as a single group, "1

Re: Default user groups

2011-02-10 Thread Chris Smart
On Fri, Feb 11, 2011 at 9:27 AM, g wrote: > > then how about this; > > add an 'alias' to you '.bashrc', like 'usernew'  that will call a script > that takes name entry as argument and passes it to > I did something similar in the end, but I was looking for a "proper" way to set a configuration op

Re: Default user groups

2011-02-10 Thread g
hi chris, On 02/10/2011 08:35 PM, Chris Smart wrote: > On Fri, Feb 11, 2011 at 6:18 AM, g wrote: > hey g >> consider /etc/default/useradd; >> >> Â # useradd defaults file >> Â GROUP=100,20,63,1010,2020 > > Thanks, but I actually tried this and it didn't work because it treats > them as a single

Re: Default user groups

2011-02-10 Thread Chris Smart
On Fri, Feb 11, 2011 at 6:18 AM, g wrote: hey g > > consider /etc/default/useradd; > >  # useradd defaults file >  GROUP=100,20,63,1010,2020 Thanks, but I actually tried this and it didn't work because it treats them as a single group, "100,20,63.." and doesn't separate them :-( -c -- users mai

Re: Default user groups

2011-02-10 Thread g
hi chris, On 02/06/2011 10:18 PM, Chris Smart wrote: <> > Thanks Thomas, but unless I missed something it doesn't really help > :-) I realise that each user gets their own private group, but I want > to have new users added to extra groups at the time of creation. consider /etc/default/useradd;

Re: Default user groups

2011-02-06 Thread Chris Smart
On Mon, Feb 7, 2011 at 4:46 AM, Ted Roche wrote: > man adduser > > has some clues on adding a user to a default group with -g and > multiple groups with -G. There's further discussions in the man page > on these behaviors. Hope that helps. > Thanks Ted, I'm well aware of these but I'm specificall

Re: Default user groups

2011-02-06 Thread Chris Smart
On Mon, Feb 7, 2011 at 1:16 AM, Aaron Konstam wrote: > How about a shell script that envokes adduser and then one or more chgrp > commands. Yeah, I did something like that in the end. I just was looking for the least disruptive and most in-line way to do it. Debian has a config file for specifyin

Re: Default user groups

2011-02-06 Thread Thomas Cameron
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/05/2011 04:50 PM, Chris Smart wrote: > Does anyone know where Fedora sets the default user groups for new users? > > Say I want to create a new user and have them automatically added to a > few more groups, how can one do that?

Re: Default user groups

2011-02-06 Thread Ted Roche
On Sat, Feb 5, 2011 at 7:15 PM, Chris Smart wrote: > > Or is there not such config and in the scripts (such as firstboot) it > passes the group options to adduser command? > man adduser has some clues on adding a user to a default group with -g and multiple groups with -G. There's further discu

Re: Default user groups

2011-02-06 Thread Aaron Konstam
On Sun, 2011-02-06 at 11:46 +1100, Chris Smart wrote: > On Sun, Feb 6, 2011 at 11:35 AM, Aaron Konstam wrote: > > When you use the user add gui it puts that user into a group with his > > username as the group name. Then you can use chgrp to put that user into > > any group you want to. > > Sure,

Re: Default user groups

2011-02-05 Thread Chris Smart
On Sun, Feb 6, 2011 at 11:15 AM, Chris Smart wrote: > Or is there not such config and in the scripts (such as firstboot) it > passes the group options to adduser command? Maybe I'll just alias it.. -c -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription opti

Re: Default user groups

2011-02-05 Thread Chris Smart
On Sun, Feb 6, 2011 at 11:35 AM, Aaron Konstam wrote: > When you use the user add gui it puts that user into a group with his > username as the group name. Then you can use chgrp to put that user into > any group you want to. Sure, but I'm after a way to specify what groups a user should be added

Re: Default user groups

2011-02-05 Thread Aaron Konstam
On Sun, 2011-02-06 at 09:50 +1100, Chris Smart wrote: > Does anyone know where Fedora sets the default user groups for new users? > > Say I want to create a new user and have them automatically added to a > few more groups, how can one do that? > > Thanks! > -c

Re: Default user groups

2011-02-05 Thread Chris Smart
On Sun, Feb 6, 2011 at 9:50 AM, Chris Smart wrote: > Does anyone know where Fedora sets the default user groups for new users? > Or is there not such config and in the scripts (such as firstboot) it passes the group options to adduser command? -c -- users mailing list

Default user groups

2011-02-05 Thread Chris Smart
Does anyone know where Fedora sets the default user groups for new users? Say I want to create a new user and have them automatically added to a few more groups, how can one do that? Thanks! -c --   _  °v° /(_)\  ^ ^  Chris Smart -- users mailing list users@lists.fedoraproject.org To