Help Center/ CodeArts Deploy/ FAQs/ Custom Application Actions/ Deleting a File/ Error Occurs During Application Deployment with the sudo Privileges
Updated on 2024-08-06 GMT+08:00

Error Occurs During Application Deployment with the sudo Privileges

Symptoms

A password is required after Run this task with sudo privileges is selected during the deployment of a host-related application.

Cause Analysis

You have selected Run this task with sudo privileges, but password-free settings have not been configured in the /etc/sudoers file on the Linux host.

Solution

In the /etc/sudoers file, add $username ALL=(ALL) NOPASSWD: ALL after root ALL=(ALL:ALL) ALL. $username indicates a username.