debian installation after the sudo command is not used

  • 2020-05-07 20:45:59
  • OfStack

After installing debian, the sudo command was found to be unavailable

I searched for a long time and found that sudo was not installed

Come on, go into the root security pack, blow it up, apt-get install sudo

After the installation found a pile of strange problems

Leave him alone and move on

Set the sudoers configuration file in root


chmod +w /etc/sudoers
vim /etc/sudoers

Add 1 line  


username     ALL=(ALL) ALL

Where username is your username, save

Change the sudoers file permissions


chmod 0440 /etc/sudoers

Exit root

ok is good. Try it? ; -)


Related articles: