Re: Please, don't let sudo be auto-removable
On Wed, Jul 30, 2025 at 9:32 PM Stefan Monnier <monnier@iro.umontreal.ca> wrote:
>
> >> If you need sudo, why not just apt-mark manual it?
> > Does anyone know if the installer does this if the administrator doesn't set
> > a root password?
>
> I believe so, but I don't know for sure, no.
>
> > There's an argument that sudo should refuse to uninstall itself (e.g. in
> > a prerm script) if the root user doesn't have a password at all. That would
> > be a neat trick.
>
> Indeed.
>
> Thinking of scenarios how `sudo` could end up marked as
> automatically-installed, `aptitude why sudo` points out that it can get
> auto-installed (via "recommends") if you install `dkms`, so maybe José
> (or the installer) installed `dkms` long ago and then he recently
> removed it?
I have it as a recommendation from "task-desktop" which I think is
more likely, seeing how "dkms" itself is auto-removable on my system.
Personally I think that if you get it installed from the debian
installer by selecting that you don't want a root password, it should
reasonably be installed without depending on something else.
Reply to: