Non-root User Fails to Run ascend-deployer on EulerOS 2.10

Symptom

On EulerOS 2.10, when a non-root user uses ascend-deployer installed by the root user, a message is displayed, indicating that ascend-deployer cannot be used.

Figure 1 Failing to execute ascend-deployer

Cause Analysis

The permission on the built-in Python directory of EulerOS 2.10 is 700. If a non-root user uses ascend-deployer installed by the root user, the execution fails due to low permission on the Python directory.

Solution

In common scenarios, you are advised to install ascend-deployer and deploy the environment as a non-root user to avoid insufficient permission.

In EulerOS 2.10, to use ascend-deployer installed by the root user as a non-root user, you are advised to change the permission on the Python directory to 755. Before the setting, ensure that the permission meets the security requirements of your organization and change the permission after the deployment is complete.