CWP Fresh install on Almalinux 9 Error root login

Started by vipony12, November 26, 2024, 05:03:45 AM

Previous topic - Next topic

vipony12

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

overseer

Do you have PermitRootLogin yes in /etc/ssh/sshd_config?

vipony12

Quote from: overseer on November 26, 2024, 06:05:14 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

Starburst

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.

josemnunez

We are working on resolving this issue, a quick fix is ​​to go to this file

nano /etc/login.defs



and comment out the following line

SHA_CRYPT_MAX_ROUNDS 5000

to

#SHA_CRYPT_MAX_ROUNDS 5000


then change the root password using the passwd command

Starburst


vipony12

Quote from: josemnunez on November 28, 2024, 08:29:58 PM
We are working on resolving this issue, a quick fix is ​​to go to this file

nano /etc/login.defs


and comment out the following line

SHA_CRYPT_MAX_ROUNDS 5000

to

#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
# 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

Evans76

   I faced a similar kind of issue last time, I am still searching for some proper solution Same issue still no fix to this.

Starburst

I'm finding out it depends on what image has been used.

If you boot & install from the DVD .iso, there is no problem.
But seems like very provider does their own tweaks to the images they use.

So if your provider give you an option to upload a .iso and a console windows to install, that is the best way.

But what Jose posted above works on AL 9.
Just comment out the SHA_CRYPT_MAX_ROUNDS line.

aesh120

I faced this issue on Alma Linux (KVM) and commenting  SHA_CRYPT_MAX_ROUNDS worked very fine

Vig_

#10
Quote from: josemnunez on November 28, 2024, 08:29:58 PM
We are working on resolving this issue, a quick fix is ​​to go to this file

nano /etc/login.defs



and comment out the following line

SHA_CRYPT_MAX_ROUNDS 5000

to

#SHA_CRYPT_MAX_ROUNDS 5000


then change the root password using the passwd command

I just installed CWP for AlmaLinux 9.5 and facing the problem with login to the root.

#SHA_CRYPT_MAX_ROUNDS 100000

already commented, but still can not login.

overseer

Did you reboot and reset the r00t password after the change?

uma


OS: AL9
/etc/login.defs already commented
#SHA_CRYPT_MAX_ROUNDS 10000

sshd config already have PermitRootLogin yes and PasswordAuthentication yes

but still I am not able to login at CWP and getting error *Login failed*

I installed AL9 from datacenter image. other server installed AL8 from data center image working fine.

any help highly appreciated. CWP and its community is amazing.

Thank you.


overseer

Is your data center image based on the full/DVD installer, or the minimal install? You need a full install, not minimal.

Starburst

Try this:

nano /etc/login.defs

Change to:
QuoteSHA_CRYPT_MAX_ROUNDS 5000

Then change the root password using the passwd command

Something with just lower & upper case letters and Numbers.
(You can always change it later)

You might also have to clear you browser of cookies & cache.