@ravis
Linux Nov 04, 2026

give a new ubuntu user sudo rights from the terminal

created a second user for a family member and now want them to be able to install things. no gui on this box. what's the cleanest command?
1

Leave A Reply

Log in to post an answer.

1 Answer

maaya_tech Nov 05, 2026
ravis
sudo usermod -aG sudo theirusername the -a matters, without it you replace their groups instead of adding one. they need to log out and back in before it takes effect, check with groups theirusername. no need to touch the sudoers file at all.