Skip to content

Installation stuck on stage "Common Tools and Requirements: 2%" → chsh: PAM: Authentication failure #5037

@eshfield

Description

@eshfield

I’m performing a clean install of Hiddify Manager on a fresh Ubuntu 22.04 VPS using the one-liner command:bash <(curl https://i.hiddify.com/release):

The installation hangs at the stage "Common Tools and Requirements: 2%" with the last visible line:

Setting up ssh (1:8.9p1-3ubuntu0.13) ...

However, SSH installs successfully, as confirmed by the logs (/var/log/dpkg.log):

status installed ssh:all 1:8.9p1-3ubuntu0.13

While the script appears stuck, I accidentally scrolled the terminal and saw:

Password: 
chsh: PAM: Authentication failure

Then the installation surprisingly continued.

The issue seems to be caused by this line in the install script (install.sh line 10):

chsh hiddify-panel -s /bin/bash

This command prompts for a password and waits, but since the hiddify-panel user is created without a valid password (default useradd behavior on Ubuntu 22.04 creates users with locked passwords), chsh fails authentication. The install script is run as root, as recommended.

My /etc/pam.d/chsh file matches the standard Ubuntu 22.04 configuration:

auth       required   pam_shells.so
auth       sufficient pam_rootok.so
@include common-auth
@include common-account
@include common-session

Here I reproduce the appearance of the problem:

root# useradd testuser
root# grep testuser /etc/shadow
testuser:!:20286:0:99999:7:::
root# chsh testuser -s /bin/bash
Password: ← it waits for any key press
chsh: PAM: Authentication failure

I can’t understand how my hosting Ubuntu 22.04 installation differs from the standard, since I could not find any reports of this problem elsewhere.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions