Run Jenkins with Super User Privilege on the server

Posted By : Rijul Jain | 03-Jun-2015

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:

  1. Browse to the "sudoers" file, present in the /etc directory on your system.
  2. Open the  sudoers file and add the following entry to the same:
    %jenkins ALL=NOPASSWD: ALL
    
  3. 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.

About Author

Author Image
Rijul Jain

Rijul boasts extensive experience in leading and managing ERP Business Units, as well as overseeing high-performing engineering teams responsible for multi-million dollar portfolios. With a proven track record in managing complex ERP projects and driving organizational success, Rijul brings a wealth of knowledge and skills to the table. His ability to navigate the intricacies of ERP systems, coupled with his talent for fostering team excellence, make him a valuable asset in achieving and exceeding business objectives.Rijul is leading ERP Business Unit at organization and overseeing a diverse team of software developers, business development professionals, and marketing experts in the domain.

Request for Proposal

Name is required

Comment is required

Sending message..