Author Topic: CWP Fresh install on Almalinux 9 Error root login  (Read 1042 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
CWP Fresh install on Almalinux 9 Error root login
« on: November 26, 2024, 05:03:45 AM »
I try install cwp on almalinux 9 but i got error root login
Try change pass root, test by ssh command but still error login

Last day, i tested on almalinux9 on AMZ server, all working, current server tested working too

So, what error? How to check logs for that

Offline
*****
Re: CWP Fresh install on Almalinux 9 Error root login
« Reply #1 on: November 26, 2024, 06:05:14 AM »
Do you have PermitRootLogin yes in /etc/ssh/sshd_config?

Offline
*
Re: CWP Fresh install on Almalinux 9 Error root login
« Reply #2 on: November 26, 2024, 11:24:21 AM »
Do you have PermitRootLogin yes in /etc/ssh/sshd_config?

Yes, PermitRootLogin is enabled
I can login by ssh with password from an other server
CWP no provide any logs for that

Offline
*****
Re: CWP Fresh install on Almalinux 9 Error root login
« Reply #3 on: November 28, 2024, 02:35:37 PM »
If this is a new AlmaLinux 9 install, it's a know bug being worked on.

Having the same issue on a new server brought up yesterday.

Offline
*****
Re: CWP Fresh install on Almalinux 9 Error root login
« Reply #4 on: November 28, 2024, 08:29:58 PM »
We are working on resolving this issue, a quick fix is ​​to go to this file
Code: [Select]
nano /etc/login.defs


and comment out the following line
Code: [Select]
SHA_CRYPT_MAX_ROUNDS 5000
to
Code: [Select]
#SHA_CRYPT_MAX_ROUNDS 5000

then change the root password using the passwd command

Offline
*****
Re: CWP Fresh install on Almalinux 9 Error root login
« Reply #5 on: November 28, 2024, 11:19:59 PM »
Worked like a charm.

Thanks @josemnunez

Offline
*
Re: CWP Fresh install on Almalinux 9 Error root login
« Reply #6 on: December 09, 2024, 11:31:14 PM »
We are working on resolving this issue, a quick fix is ​​to go to this file
Code: [Select]
nano /etc/login.defs

and comment out the following line
Code: [Select]
SHA_CRYPT_MAX_ROUNDS 5000
to
Code: [Select]
#SHA_CRYPT_MAX_ROUNDS 5000

then change the root password using the passwd command

I can't wait to fix it, so i change to v8
In my AMZ server, my default value and still working normal
Code: [Select]
# Define the number of SHA rounds.
# With a lot of rounds, it is more difficult to brute-force the password.
# However, more CPU resources will be needed to authenticate users if
# this value is increased.
#
# If not specified, the libc will choose the default number of rounds (5000).
# The values must be within the 1000-999999999 range.
#
SHA_CRYPT_MAX_ROUNDS 100000