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

Bug#690763: installation-guide: sudo and no password for root user situation



Hi,

Nicholas D Steeves <nsteeves@gmail.com> wrote:
> Hi Holger,
> 
> On 11 July 2017 at 19:11, Holger Wansing <linux@wansing-online.de> wrote:
> > Baptiste Jammet <baptiste@mailoo.org> wrote:
> >> Hello,
> >>
> >> I don't know the implementation detail of this (no root password
> >> installs sudo and allow user to use it), but I suspect that only the
> >> first user (created in the next step) will be allowed to use sudo.
> >>
> >> Maybe add something like :
> >> By default, only the first user, that will be created in the next step,
> >> will be allowed to use <command>sudo</command> to perform these
> >> administrative tasks.
> >
> > Yes, you are right, it works exactly this way.
> >
> > I have committed a change to document this clearer:
> > https://anonscm.debian.org/viewvc/d-i?view=revision&revision=70801
> 
> Quick question about this change:  Is the first user given sudo
> privileges now when the root account is enabled (eg: first user always
> has admin privileges irregardless of root account status)?  IIRC when
> the root account is enabled the first user needs to be granted
> permissions with visudo.  I'm not up-to-date with the new installation
> procedure though! ;-)

1. there has been no recent code change in this regard, so the implementation
has been the same for a long time.

2. Reading the whole paragraph gives the answer to your question:
<cited>
Setting up your clock and time zone is followed by the creation of user accounts. By
default you are asked to provide a password for the <quote>root</quote>
(administrator) account and information necessary to create one regular user
account. If you do not specify a password for the <quote>root</quote> user, this
account will be disabled but the <command>sudo</command> package will be installed
later to enable administrative tasks to be carried out on the new system.
By default, the first user created on the system will be allowed to use the
<command>sudo</command> command to become root.
</cited>


Long story short: 
functionality of the Debian installer is:
the first user only gains sudo rights, if root account is disabled.


Regards
Holger

-- 
============================================================
Created with Sylpheed 3.5.0 under
	D E B I A N   L I N U X   8 . 0   " J E S S I E " .

Registered Linux User #311290 - https://linuxcounter.net/
============================================================


Reply to: