Sudo Index Page 1
How to execute sudo with no password
In this short tutorial, we are going to explain how to configure the /etc/sudoers file for no password sudo. TLDR; username ALL=(ALL) NOPASSWD:ALL . We will also explain how to use a group to allow execution of sudo with no password.Check our step by step guide and good practices.
Sudo Index Page 1
Gitlab-CI Runner: sudo: no tty present and no askpass program specified
When you execute sudo on a gitlab-ci job you can get the folllowing error: "sudo: no tty present and no askpass program specified", the solution is to add gitlab-runner user in the sudoers file with NOPASSWD. Check this article for more information.