[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#758307: installation-reports: First user not added to the lpadmin group



Quoting Brian Potkin (claremont102@gmail.com):
> Package: user-setup-udeb
> Severity: normal
> Tags: d-i
> 
> 
> 
> #697331 was closed with the following comment:
> 
>   * Add first created user to lpadmin group so that it can use local
>     printers when installed.
> 
> After an install using debian-jessie-DI-b1-i386-netinst.iso 'groups'
> gives
> 
>     brian cdrom floppy audio dip video plugdev netdev
> 
> (A CC to debian-printing@lists.debian.org because there will likely be
> an interest in this there).


Still:

# Allow preseeding the groups to which the first created user is added
Template: passwd/user-default-groups
Type: string
Default: audio cdrom dip floppy video plugdev netdev powerdev scanner bluetooth debian-tor lpadmin
Description: for internal use only

The code that uses this:

        if [ -n "$USER" ]; then
                db_get passwd/user-default-groups
                for group in $RET; do
                        $log $chroot $ROOT adduser "$USER" $group >/dev/null 2>&1 || true
                done
        fi


After more thinking, my (wild) guess is that, at the time this is
done, these groups...do not exist on the system. And "adduser <user>
<group>" then fails when "<group>" doesn't exist.

If I'm right, there are probably traces of this is the installer log, I'd guess.

Attachment: signature.asc
Description: Digital signature


Reply to: