Wednesday, 15 July 2015

Linux: How to Add an Admin Account

How to Create a new User
  • sudo useradd ops.dantro0
  • sudo passwd ops.dantro0
How to Grant SUDO privileges to the new user
  • Connect as root by entering this on the prompt: sudo -i
  • visudo
  • append on the file: ops.dantro0 ALL=(ALL) ALL
How to Confirm if the new user is now granted sudo privileges
  • less /etc/sudoers  (or you can use cat or more or tail)

Additional References:
http://www.tecmint.com/add-users-in-linux/


No comments:

Post a Comment