Score:0

Cannot create any sudo users

sz flag

I'm new to linux. I have installed ubuntu desktop 22.04.1 and am trying to install crossover. You do this using sudo but the only ubuntu user is not a sudoer. I googled to see how you add a person to the sudoers list but apparently you do this with visudo and again the only user does not have the right privileges. That seems to leave me in a catch-22. Can anyone help me get out?

pLumo avatar
in flag
Also, you won't need to change anything in `sudoers` file (using `visudo`) to have a `sudo` user. Default is that there is a group called `sudo`, and you only need to add a user to this group.
l_matt avatar
sz flag
@guiverc OK I've added some detail on that (desktop, 22.04.1). It did set up a single user, lm. When I go into terminal I see `@lm`. If I then try to run the sudo command I get an error message telling me that lm is not a sudoer. For some reason the username appears in capitals in settings but there is only one name in the list so I think it must be the same user that appears in lower case in terminal.
αғsнιη avatar
cn flag
no, character-cases (Upper/Lower) matter.
l_matt avatar
sz flag
@αғsнιη If I try to change to LM in terminal (I typed su LM) I get an error message to the effect that there is no such user or the user entry is not complete.
muru avatar
us flag
Add the output of `sudo -l` and `id` to the question, please.
I sit in a Tesla and translated this thread with Ai:

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.