How to add user to sudoers?

Hi,
so I created /etc/sudoers.d/visudo
(filename was chosen by visudo) with content:

username ALL=(ALL:ALL) ALL

…logged out & in but my application still complains about sudo permissions missing

any ideas ?

Check out this link - https://docs.01.org/clearlinux/latest/guides/maintenance/enable-user-space.html

Chris

Use adduser or useradd to add a new user

sudo adduser username

Be sure to replace username with the user that you want to create. Also, note that to create a new user, you must also be a sudo user yourself.

Use passwd to update the new user’s password

sudo passwd username

A strong password is highly recommended!

If one wants just to give permissions to some programm, he can add the following lines to the sudoers file:
username ALL=(ALL:ALL) ALL
%username ALL = NOPASSWD: /path/to/the/prog

1 Like