How can I add a new customer as sudoer making use of the command line?

After I add a customer making use of adduser, I can not see it using System > Administration > Users and also Groups unless I log out and afterwards visit once more. Is that regular?

Additionally, can I set a freshly included customer as a sudoer or do I need to transform that just after including it? Just how can I do that using the covering?

Ultimately, can I delete the initial customer that was developed upon first installation of Ubuntu, or is this customer in some way 'unique'?

2019-05-18 21:40:31
Source Share
Answers: 2

All participants of the team admin, remain in Ubuntu by default permitted to make use of sudo, so the most convenient means is to add the customer account to the admin team.

If you do not intend to offer the customer account complete origin accessibility, you require to modify the/ etc/sudoer documents with visudo (it sees to it that you do not have any kind of syntax mistakes in the documents and also shed sudo capacity completely) in such a way that you define what regulates this customer (or a new team) can execute as origin.

The sudoer manual will certainly offer you even more details concerning this. You can define which commands are allowed by a certain user/group to be implemented as origin.

2019-05-21 05:58:45

Just add the user to the :

sudo adduser <username> sudo

The adjustment will certainly work the next time the customer visit.

This functions due to the fact that /etc/sudoers is pre - set up to grant approvals to all participants of this team (You need to not need to make any kind of adjustments to this):

# Allow members of group sudo to execute any command
%sudo   ALL=(ALL:ALL) ALL

As long as you have accessibility to a customer that remains in the very same teams as your "initial" customer, you can delete the old one.

Genuinely, there are additionally various other teams your new customer need to belong to. If you set the Account sort of a customer to Administrator in Users Settings, it will certainly be positioned in at the very least every one of these teams:

adm sudo lpadmin sambashare

Because your system arrangement might differ, I recommend having a look at the result of groups <username> to see what teams are generally in operation.

2019-05-21 04:54:39