You are not logged in.

#1 2026-01-06 19:10

Digidoc
Member
Registered: 2025-03-15
Posts: 36

Add new user to sudo

I setup this laptop for a user (John Smith), and setup a password for him. Now I want to give it away and want to setup a user for the new owner. I also want to change the sudo password. Using the control panel I made a new user with his own password. He can change that later if he wants. So far all is good. I think I know the problem, but not how to fix it. When the new user tries things I get the message about not having the right credentials. I think they need added to the sudo group, but I do not know how. The original UID is 1000; the one I made is 1001. How can I fix this from the command line?

Offline

#2 2026-01-06 19:13

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 6,114
Website

Re: Add new user to sudo

Do you want to add a regular user to the sudo group ?
$ sudo usermod -a -G sudo <username>

Offline

Board footer

Powered by FluxBB