[Fedora-spins] Adding default user to a group

Brian C. Lane bcl at redhat.com
Tue Jul 17 17:38:35 UTC 2012


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?

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 482 bytes
Desc: not available
URL: <http://lists.fedoraproject.org/pipermail/spins/attachments/20120717/88f9827d/attachment.sig>


More information about the spins mailing list