Score:0

Cannot Sudo or edit sodoer to add user

jp flag

I successfully installed Ubunto Server 20.04 on Raspberry Pi. I added a user, but the user, me, cannot sudo, not edit sudoer file to allow sudo. Was not prompted to add administer at installation.

Nmath avatar
ng flag
The user that was created during installation will have sudo (administrator) privileges. If you are experiencing a problem running commands and would like our help- you must edit your question and include each command and its output. Without those details, we can't guess the problem you are experiencing and won't be able to answer.
Score:0
jp flag

I fixed this problem by reinstalling Ubuntu server, immediately adding user,$ sudo adduser username, then adding to sudoers file, $ sudo usermod -aG sudo sampleuser before logging out and running as user. Now it works just fine.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.