Re: sudo and cloud images
- Reply: Gonéri_Le_Bouder : "Re: sudo and cloud images"
- In reply to: Gonéri_Le_Bouder : "Re: sudo and cloud images"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 03 Jan 2026 21:16:31 UTC
On 1/3/26 16:53, Gonéri Le Bouder 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. No, if you specify 'sudo' in the 'packages' field of your 'user_data', it will be installed. When you specify to use sudo in the user created by nuageinit, it will be added to the sudoers file. The same applies with doas, but using doas.conf.