Default user groups

g geleem at bellsouth.net
Thu Feb 10 22:27:40 UTC 2011


hi chris,

On 02/10/2011 08:35 PM, Chris Smart wrote:
> On Fri, Feb 11, 2011 at 6:18 AM, g <geleem at bellsouth.net> 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 :-(

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

  useradd -G 100,20,63,1010,2020 $1

that way you would not have to retype groups again and get what you want.

if you had several different group groupings, you could have different
aliases with names to describe the groups.


hth.

-- 

peace out.

tc.hago,

g
.

****
in a free world without fences, who needs gates.
**
help microsoft stamp out piracy - give linux to a friend today.
**
to mess up a linux box, you need to work at it.
to mess up an ms windows box, you just need to *look* at it.
**
learn linux:
'Rute User's Tutorial and Exposition' http://rute.2038bug.com/index.html
'The Linux Documentation Project' http://www.tldp.org/
'LDP HOWTO-index' http://www.tldp.org/HOWTO/HOWTO-INDEX/index.html
'HowtoForge' http://howtoforge.com/
****

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 545 bytes
Desc: OpenPGP digital signature
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20110210/2c386fae/attachment.bin 


More information about the users mailing list