Can not update, sudoer issue

hal_sk

New Member
Joined
May 25, 2020
Messages
28
Reaction score
5
Credits
288
Hello,
I have freshly installed Debian 11.x
When I open the terminal and execute:
Code:
sudo apt update
I get "<user> is not in sudoers file".
It works in Linux Mint which I use normally.
What is happening? How do I update and upgrade Debian?
 


In Debian you have to add yourself to the sudoers list from the terminal run
press enter then
sudo usermod -aG sudo username
where username is your user name press enter

reboot
 
I just solved it by reinstalling Debain. The problem was, that during my first installation process, I have set passwords for both root and user. Now I have only set password for user. Still not sure what is the point of it, but at least it works as I am used to from Mint.
 
For a long time, root was the default user on Linux, but it’s now disabled on most distributions. On Debian, using “sudo” is the recommended method to get administrator privileges with the main user, instead of using “root”. If needed, the “root” user can still be enabled by setting up their password. The “root” still exists on Debian and most Linux distributions, but can’t be used by default. The account is disabled for security reasons.
If you have access to a user account with the sudo permission, you can easily switch from the user to the root account with:
Me I like to use root access so I have mine enabled
 

Members online


Latest posts

Top