How to: Enable a Linux user as sudoer using the command line


Just add the user to the sudo group:
sudo adduser sudo
The change will take effect the next time the user logs in.
This works because /etc/sudoers is pre-configured to grant permissions to all members of this group (You should not have to make any changes to this):
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
As long as you have access to a user that is in the same groups as your “original” user, you can delete the old one.

Related Articles

회신을 남겨주세요

귀하의 의견을 입력하십시오!
여기에 이름을 입력하십시오.

Stay Connected

0같은
0추종자따라
0가입자가입
- Advertisement -spot_img

Latest Articles