Re: Default user groups

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

/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.

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.
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, C2 Hosting          ricks@xxxxxxxx -
- AIM/Skype: therps2        ICQ: 22643734            Yahoo: origrps2 -
-                                                                    -
-  Memory is the second thing to go, but I can't remember the first! -
----------------------------------------------------------------------
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux