[Pkg-utopia-maintainers] Processed: Re: Bug#672140: prompts for root passwords on a sudo-only system

Christian PERRIER bubulle at debian.org
Sun Aug 19 10:49:49 UTC 2012


reassign 672140 user-setup
thanks

Quoting Debian Bug Tracking System (owner at bugs.debian.org):
> Processing commands for control at bugs.debian.org:
> 
> > reassign 672140 debian-installer
> Bug #672140 [policykit-1] prompts for root passwords on a sudo-only system
> Bug reassigned from package 'policykit-1' to 'debian-installer'.
> No longer marked as found in versions policykit-1/0.104-2.
> Ignoring request to alter fixed versions of bug #672140 to the same values previously set
> > retitle 672140 sudo users should be in sudo group
> Bug #672140 [debian-installer] prompts for root passwords on a sudo-only system
> Changed Bug title to 'sudo users should be in sudo group' from 'prompts for root passwords on a sudo-only system'

Reassigning to the right D-I component.

However, in user-setup-apply:

                if [ -e $ROOT/etc/sudoers ]; then
                        # Test if we can add the user to the sudo group
                        # (possible if sudo >= 1.7.2-2 is installed on the target system)
                        # If we can, do it this way, otherwise add the user to sudoers
                        # See #597239
                        if ! $log $chroot $ROOT adduser "$USER" sudo >/dev/null 2>&1; then
                                echo "$USER ALL=(ALL) ALL" >> $ROOT/etc/sudoers
                        fi
                else
                        # sudo failed to install, system won't be usable
                        exit 1
                fi


In short, according to this code, this is already implemented, as of
user-setup 1.34, assuming the sudo group exists at the time this is
done. Adding the sudo user to sudoers is only a fallback.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-utopia-maintainers/attachments/20120819/a70d7b4e/attachment-0001.pgp>


More information about the Pkg-utopia-maintainers mailing list