VNC Login Error (Module is Unknown)

Last updated: 2021-06-23 16:13:16

    Error Description

    I entered the correct password, but still could not log in to the CVM using VNC. The message “Module is unknown” appears.

    Possible Reasons

    This issue may be caused by the /etc/pam.d/system-auth configuration in /etc/pam.d/login file.

    If the path of the module is not configured correctly in the system-auth configuration file, the login fails.


    The module limits the system resource usage of a user during the session. If the module path is not configured correctly according to the actual operating system, the login authentication fails.


    1. Perform the troubleshooting procedure to locate the path configuration in the system-auth file.
    2. Correct the module path.

    Troubleshooting Procedure

    1. Try to log in to Linux CVM via SSH key.
    2. Run the following command to view logs.
      vim /var/log/secure
      This file records the security information, mostly CVM login logs. You can check the error logs of /lib/security/ as shown below.
    3. Run the following commands in sequence to enter /etc/pam.d directory and search for /lib/security/
      cd /etc/pam.d
      find . | xargs grep -ri "/lib/security/" -l
      If the result similar to the following figure is returned, /lib/security/ is configured in the system-auth file.
    4. Access the system-auth file to correct the module path.
      For example, you can use the absolute path /lib64/security/ or a relative path in a 64-bit operating system.