Hiddify-Manager icon indicating copy to clipboard operation
Hiddify-Manager copied to clipboard

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

Open eshfield opened this issue 6 months ago • 3 comments

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.

eshfield avatar Jul 17 '25 22:07 eshfield

I don't have such problem on Ubuntu 24.04

eshfield avatar Jul 21 '25 15:07 eshfield

i am having same problem stuck at 2percent i am on ubuntu 24.04 any solutions ▒│ │ ▒ ▒│ ===install.sh common │ ▒ ▒│ ======================other/redis====================================={ │ ▒ ▒│ ===install.sh other/redis │ ▒ ▒│ ======================other/mysql====================================={ │ ▒ ▒│ ===install.sh other/mysql │ ▒ ▒│ }========================other/mysql=================================== │ ▒ ▒│ ===run.sh other/redis │ ▒ ▒│ }========================other/redis=================================== │ ▒ ▒│ Using Python 3.13.7 environment at: /opt/hiddify-manager/.venv313 │ ▒ ▒│ net.ipv6.conf.all.disable_ipv6 = 0 │ ▒ ▒│ net.ipv6.conf.default.disable_ipv6 = 0 │ ▒ ▒│ net.ipv6.conf.lo.disable_ipv6 = 0 │ ▒ ▒│ IPv6 Enabled for eth0 │ ▒ ▒│ * Reloading configuration files for periodic command scheduler cron │ ▒ ▒│ ...done. │ ▒ ▒│ ======================hiddify-panel====================================={ │ ▒ ▒│ ===install.sh hiddify-panel │ ▒ ▒│ ===run.sh hiddify-panel │ ▒ ▒│ │ ▒ ▒│ │ ▒ ▒│ │ ▒ ▒│

SARNPKIR avatar Sep 10 '25 22:09 SARNPKIR

I have had the same problem on multiple servers. Annoyingly I managed to get around this on one install but can't remember what I did. I think it had something to do with updating/installing some of the dependencies before trying the Hiddify install.

│ ======================hiddify-panel====================================={ │ ▒▒│ ===install.sh hiddify-panel │ ▒▒│ ===run.sh hiddify-panel

agrogers avatar Sep 12 '25 09:09 agrogers