[Fedora-spins] Adding default user to a group
Jørn Lomax
northlomax at gmail.com
Tue Jul 17 17:48:11 UTC 2012
On 17 July 2012 19:38:35, Brian C. Lane wrote:
> On Mon, Jul 16, 2012 at 04:58:50PM +0200, Jørn Lomax wrote:
>> On 16/07/2012 16:45, Bruno Wolff III wrote:
>>> On Mon, Jul 16, 2012 at 11:02:04 +0200,
>>> Jørn Lomax <northlomax at gmail.com> wrote:
>>>> Is there a way to add the first created user to a group. I have been
>>>> able to add the liveuser to the audio and jackuser groups (which makes
>>>> sense for an audio spin), but I have not found a way of making the
>>>> user created after install (on firstboot) to said groups. Is this at
>>>> all possible, and if so, are there any hint you can give me?
>>>
>>> You can probably do this using usermod in the post section.
>>
>> That works fine for the live user. Problem is that the firstboot
>> script seems to be run after %post, so there is no way of knowing
>> what the username for the user will be and therefore I can't set
>> which groups it should belong to..
>>
>> Would it be possible to write a firstboot module and stick it in
>> /usr/share/firstboot/modules?
>
> Firstboot can optionally add the user to %wheel by checking the admin
> checkbox. Maybe we should be adding them to other groups as well?
>
>
>
> _______________________________________________
> spins mailing list
> spins at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/spins
This is what I actually ended up doing. I edited the create_user
firstboot module so it now also adds the user to the audio and jackuser
groups. I also updates the wording so that it says "add user to
Administartor and Audio groups". This works out really well, since it
both informs the user and gives them the option not to do it (in case
they feel it's a security risk). Hopefully it will be an approved way
of doing it :)
--
Jørn Lomax
GSoC Fedora Audio
CS Student University of Tromsø
More information about the spins
mailing list