I was reading a guide to install some software and came reading until this shocking statement:
sudois not installed on Debian by default. Make sure your system is up-to-date and install it.
As current Debian user, this is difficult to believe since from installation I’m able to use sudo. So, maybe it got installed when I selected not to create a password for the root account (rendering the root account disabled) or something is amiss here. Does Debian not include sudo (or it’s variants) as installed by default?
If we go by what the other answer says, sudo can be installed due APT/DPKG dependencies, which in some cases will ask tasksel/apt to install those too, but isn’t included in the required or important list:
➜ ~ aptitude search ~prequired | grep sudo ➜ ~ aptitude search ~pimportant | grep sudo ➜ ~ aptitude why '~prequired' sudo i A dpkg Suggests apt i A apt Suggests aptitude | synaptic | wajig i A synaptic Recommends gksu | kdebase-bin | policykit-1 i A gksu Depends sudo ➜ ~ aptitude why '~pimportant' sudo i A apt Suggests aptitude | synaptic | wajig i A synaptic Recommends gksu | kdebase-bin | policykit-1 i A gksu Depends sudo
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
This is a side-effect of installation parameters. If you specify a root password during installation sudo is not installed by default. If you do not specify a root password, sudo is installed. The authoritative source for this quoted below. Another related special case is that during install if you specify the sudo-ldap package, sudo will not be installed. This is the only time that sudo-ldap can be installed without a root password. If you wish to upgrade from sudo to sudo-ldap latter, you must have a root password during the upgrade.
If you do not specify a password for the
rootuser this account will
be disabled but thesudopackage will be installed later to enable
administrative tasks to be carried out on the new system. — from
debian-installer/manual/en/howto/installation-howto.xml
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0