On Mon, Jul 16, 2012 at 16:58:50 +0200,
Jørn Lomax <northlomax(a)gmail.com> wrote:
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?
In /etc/login.defs you can set groups that people get when logging
in on the console. See the setting CONSOLE_GROUPS in the man page for
login.defs.
You can also set all users to get the same primary group by default. This
has security reprocussions and shouldn't be changed lightly.