Advertisement
0x2264773426

To remove password authentication in the terminal:

Mar 20th, 2023 (edited)
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. To remove password authentication in the terminal:
  2. sudo visudo
  3.  
  4. Then scroll down using the down arrow key:
  5. Find the root section and add this word before ALL
  6. NOPASSWD:
  7. e.g.:
  8. From this:
  9. root ALL=(ALL) ALL
  10. To this:
  11. root ALL=(ALL) NOPASSWD: ALL
  12.  
  13. Then find the %wheel section and add this word before ALL
  14. NOPASSWD:
  15. e.g.:
  16. From this:
  17. %wheel ALL=(ALL) ALL
  18. To this:
  19. %wheel ALL=(ALL) NOPASSWD: ALL
  20.  
  21. Therefore save it by using some keywords:
  22. 1) CTRL+O (For saving/writing out)
  23. 2) Enter key (To save the filename as it is)
  24. 3) CTRL+X (To exit)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement