Re: sudo and cloud images

From: Eduardo Lemos de Sa <eduardo.lemosdesa_at_gmail.com>
Date: Sat, 03 Jan 2026 21:09:29 UTC
Dear Genéri

On Sat, Jan 3, 2026 at 5:54 PM Gonéri Le Bouder <goneri@lebouder.net> wrote:

> Yes, and I need to be root to install it, which is a bit of a chicken egg
> situation.
>
> On Sat, Jan 3, 2026, at 13:42, Jesús Daniel Colmenares Oviedo wrote:
> > Hi,
> >
> > On 1/2/26 21:01, Gonéri Le Bouder wrote:
> >> Hi,
> >>
> >> I maintain a pet-project where I provide FreeBSD images with
> >> Cloud-Init. I've been doing this for a couple years and I'm happy to
> >> see this is something FreeBSD support natively now. I like the
> >> nuageinit approach, is simple and straightforward.
> >>
> >> I'm testing the FreeBSD 15 cloud image and sudo is not installed by
> >> default, which is a decision I understand. What is the "correct" way
> >> to get root privileges? Do you use a user_data file to set a root
> >> password, and just use "su"? If so, what the point of the password, it
> >> sounds like some extra complexity.
> >>
> >> Regards,
> >> --
> >>        Gonéri Le Bouder
> >
> > You must install sudo if you want to use it. The same applies to doas.
> > Use 'packages' for this.
> >
> > I think we should clarify this in the man page and add sudo in the
> example.
>
> Yes, certainly is a egg/chicken problem. But in all operational systems,
you need to be root to installed and to create first users. Thus, root is
the only one that can determine which users can acted as administrators.

Sudo is a way to avoid become root to perform every task,

-- 
Eduardo Lemos de Sa
Professor Titular
Dep. Quimica da Universidade Federal do Paraná
fone: +55(41)3361-3300
fax:   +55(41)3361-3186