1. 程式人生 > >Linux add a user and give sudo permission

Linux add a user and give sudo permission

Add a user, use adduser command

sudo adduser test

Give user test root permission

sudo vi /etc/sudoers

Add a line:

test  ALL=(ALL:ALL) ALL