Hi,
Last week I came across a requirement where I had to deploy an application on the root (port:80) for which I was getting an "Authentication Failure issue" with the following error: "sudo: no tty present and no askpass program specified" for which I did the following:
- Browse to the "sudoers" file, present in the /etc directory on your system.
- Open the sudoers file and add the following entry to the same:
%jenkins ALL=NOPASSWD: ALL
- Save and exit from the file,and you're done!
Caution: This allows JENKINS to avoid the password prompt for all commands, which could
be unsafe.
So please use this with caution.
More From Oodles
Ready to innovate? Let's get in touch
Cookies are important to the proper functioning of a site. To improve your experience, we use cookies to remember log-in details and provide secure log-in, collect statistics to optimize site functionality, and deliver content tailored to your interests. Click Agree and Proceed to accept cookies and go directly to the site or click on View Cookie Settings to see detailed descriptions of the types of cookies and choose whether to accept certain cookies while on the site.
About Author
Rijul Jain
Rijul has more than 10 years of experience in software development, filling positions of both technical and managerial leadership. He loves to travel and indulge in gaming in his free time.