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(a)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
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
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 :)
GSoC Fedora Audio
CS Student University of Tromsø