Estos contenidos se han traducido de forma automática para su comodidad, pero Huawei Cloud no garantiza la exactitud de estos. Para consultar los contenidos originales, acceda a la versión en inglés.
Centro de ayuda/ Elastic Cloud Server/ Preguntas frecuentes/ Passwords and Key Pairs/ Passwords/ What Should I Do If the One-Click Password Reset Plug-ins Installed on a Linux ECS Fail to Be Started?
Actualización más reciente 2023-08-08 GMT+08:00

What Should I Do If the One-Click Password Reset Plug-ins Installed on a Linux ECS Fail to Be Started?

Scenarios

The one-click password reset plug-ins installed on a Linux ECS fail to be started.

Symptom

When a user ran sudo sh setup.sh to install one-click password reset plug-ins, the following error message is displayed:

begin install CloudResetPwdUpdateAgent
===============cp LinuxupdateAgent===============
=================vi /etc/profile=================
============begin install CloudResetPwdUpdateAgent============
Detected SuSE or SLES:
Installing the cloudResetPwdUpdateAgent daemon using systemd...
creating default service file...
Reading file /etc/systemd/system/cloudResetPwdUpdateAgent.service
Job for cloudResetPwdUpdateAgent.service failed because the control process exited with error code.
See "systemctl status cloudResetPwdUpdateAgent.service" and "journalctl -xeu cloudResetPwdUpdateAgent.service" for details.
Failed to start service cloudResetPwdUpdateAgent
/CloudResetPwdUpdateAgent/depend/jre/bin
CloudResetPwdUpdateAgent install successfully.
begin install CloudResetPwdAgent
===============cp LinuxCloudResetPwdAgent======================
===============vi /etc/profile======================
===============begin install CloudrResetPwdAgent===================
Detected SuSE or SLES:
Installing the cloudResetPwdAgent daemon using systemd...
creating default service file...
Reading file /etc/systemd/system/cloudResetPwdAgent.service
Job for cloudResetPwdAgent.service failed because the control process exited with error code.
See "systemctl status cloudResetPwdAgent.service" and "journalctl -xeu cloudResetPwdAgent.service" for details.
Failed to start service cloudResetPwdAgent
/root/CloudResetPwdAgent/CloudResetPwdAgent.Linux
cloudResetPwdAgent install successfully.

In the /var/log/message file, the following error information is displayed:

systemd[1]: Starting cloudResetPwdUpdateAgent...
systemd[5612]: cloudResetPwdUpdateAgent.service: Failed to locate executable /CloudResetPwdUpdateAgent/bin/cloudResetPwdUpdateAgent.script: Permission denied
systemd[5612]: cloudResetPwdUpdateAgent.service: Failed at step EXEC spawning /CloudResetPwdUpdateAgent/bin/cloudResetPwdUpdateAgent.script: Permission denied
systemd[1]: cloudResetPwdUpdateAgent.service: Control process exited, code=exited, status=203/EXEC

The password reset plug-ins can be executed in the root directory only after Security-Enhanced Linux (SELinux) is disabled.

Solution

  1. Disable SELinux temporarily.

    setenforce 0

  2. Disable SELinux permanently.
  3. Install the password reset plug-ins again.

    sudo sh setup.sh

  4. Check the status of the password reset plug-ins.

    service cloudResetPwdUpdateAgent status

    • If the status is active, the installation is successful.
    • If the status is not active, the installation failed. Check whether the installation environment meets requirements and install the plug-ins again.