Control Web Panel

WebPanel => CentOS 8 Problems => Topic started by: mabdala68 on December 03, 2024, 04:59:17 PM

Title: New Account Failed
Post by: mabdala68 on December 03, 2024, 04:59:17 PM
Have an idea ???  when I create a new account, this message appear ::::  Warning! User Account XXXXX not added !!!

using Almalinux 8

Title: Re: New Account Failed
Post by: overseer on December 03, 2024, 09:26:05 PM
Do you have a Package with limits set up and are assigning that to the new user?
Title: Re: New Account Failed
Post by: mabdala68 on December 03, 2024, 10:33:27 PM
Yes I create a Package for this user.. I proof with the old package (active in other users), not work too
Title: Re: New Account Failed
Post by: mabdala68 on December 04, 2024, 03:01:04 PM
2024-12-04 02:12:33 CreateAccount_FAILED HOMEDIR_EXISTS:qwerty:qwerty.com    /// but the account not created !!
Title: Re: New Account Failed
Post by: cyberspace on December 04, 2024, 04:31:13 PM
The error says the home folder of the user you try to create exists (/home/USERNAME). It could happen of you created/removed users manually using useradd/userdel commands or created some folders inside /home/.

Make sure /home/USERNAME doesn't exist.
(USERNAME - username you try to create)
Title: Re: New Account Failed
Post by: mabdala68 on December 04, 2024, 04:42:04 PM
"The user and the folder are not created. The error appears when trying to create a new user, but nothing is created. It only shows that message."
It's as if the root user had lost the privilege to create new users, but even from a Reseller account, new users cannot be created either
Title: Re: New Account Failed
Post by: overseer on December 04, 2024, 06:08:27 PM
Have you done tests with the root user in a shell? -- create a test user via CLI tools, see what happens in /home, verify that root is able to function normally on the system. (Side note: I always create another sudo/admin user on every system I administer, that way I can ssh in as that admin user and only elevate privileges as necessary.)
Title: Re: New Account Failed
Post by: mabdala68 on December 06, 2024, 01:50:25 PM
hank you for your suggestion. I haven’t tried what you mentioned about creating a test user from root in the shell or checking what happens in the /home directory. I also haven’t verified if the root user is functioning normally on the system. I’ll follow your steps to perform these tests and let you know the results.

Regarding MySQL, I can access the MySQL root user successfully using mysql -u root -p. Is there anything specific I should check in this context?"**