๐คInstalling sudo & configuration of user and groups
Installing sudo
Switch to root user: First, we need to change to the root user to install sudo. Enter the following command:
su
When prompted, enter the root password you set during installation (in our example: Hola42bcn
).
Install sudo package: Once you're logged in as root, run the following command:
apt install sudo
This command tells the package manager to install the required packages for sudo. Press y
when prompted to confirm the installation.
Reboot the system: We must reboot the machine so the changes can be applied. Use the following command:
sudo reboot
Verify installation: Once the machine has rebooted, enter the encryption password and log in again. To check if sudo has been installed correctly, switch to the root user:
su
Then verify the sudo installation with:
sudo -V
This command will display the sudo version and configuration details if the installation was successful.
Last updated
Was this helpful?