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
/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?
--
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)