Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 579 Bytes

Grant-user-to-use-sudo-without-password.md

File metadata and controls

25 lines (16 loc) · 579 Bytes
  • Date : 2017-05-18
  • Tags : #sysadmin #linux

Grant user to use sudo without password

This is bad practice but it's kind of hacky thing if you YOLO

# Create a user with home dir and bash shell (if you don't have yet)
$ useradd -m YOURUSERNAME -s /bin/bash
$ sudo vi /etc/sudoers

Add this line below root ALL=(ALL:ALL) ALL (User privilege specification section)

$ YOUR_USERNAME     ALL=(ALL:ALL) NOPASSWD:ALL

Then press :wq! to force saving the file

make me a sandwich sudo

Enjoy sudo !