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

Bug#779578: Re: Bug#779578: user-setup: Please install sudo when installing without root password



Cyril Brulebois <kibi@debian.org> wrote:
> Err, installing sudo and making the first user a sudoer is what is
> supposed to happen in such a case. The existing /etc && /home might
> have had some kind of influence on the net results.

Indeed that seems to be the case. Looking at user-setup-apply, line 154
has a conditional which only installs sudo if /etc/sudoers does not
exist in the target. This test obviously fails to do the right thing
when installing with an existing /etc.

If the next line (157) which has the installation commands is a no-op
when sudo is installed (at least it should be), then I think the
conditional could be removed completely.

Best,
Teemu

Reply to: