passwd admin not work

castris

Verified User
Joined
Apr 16, 2021
Messages
103
Location
Arcenillas
Hi.

I have inherited an old server that I must migrate to a VPS with a new version of Directadmin.

  • The client gives me an passwd admin that does not work
    Code:
    passwd admin
    Cambiando la contraseña del usuario admin.
    Nueva contraseña:
    Vuelva a escribir la nueva contraseña:
    passwd: todos los tokens de autenticación se actualizaron exitosamente.
  • From the shell I try to recover it with the tips password admin
But nothing, it doesn't work.

Is there a method to reset the password in the shell?

Directadmin: v.1.61.5
Centos 6.0
 
Hi.

I'v posted in english.

I put exit of command on server with es_ES locale.

Thank for link.

Best regards.
 
Hi.
The link says exactly the same as I say that it doesn't work. That is, I have the feeling that instead of answering the post, you have simply scolded me for having put something in Spanish.
If you read the post you are sending me to, you will see that the code used is the same, and the root of putting this independent post, is in case someone wants to help, with the available data, do it, since otherwise, it will not work of much.

It is clear that the command is

Code:
# passwd admin
Changing the password of the admin user.
New Password:
Retype the new password:
passwd: all auth tokens were updated successfully.

#### NOTE # denote root user

But it doesn't work for me and neither does the other one that indicates

Code:
cat /usr/local/directadmin/scripts/setup.txt

Read that @smtalk clearly indicates the use of that command in the referenced post and other parts of the Directamdin how-to


Well, I just hope it doesn't bother you anyway, since I'm not an English speaker, and maybe some tone or twist might be offensive to you.

Best regards.
 
I'v posted in english.
You did not:
passwd admin Cambiando la contraseña del usuario admin. Nueva contraseña: Vuelva a escribir la nueva contraseña: passwd: todos los tokens de autenticación se actualizaron exitosamente.
So I had translated in English for other users to understand your problem.

If you read the post you are sending me to, you will see that the code used is the same, and the root of putting this independent post, is in case someone wants to help, with the available data, do it, since otherwise, it will not work of much.


The link I had provided suggest more options/ways to reset/recreate admin password then only doing passwd admin in SSH, did you really read the whole topic ?
 
Ok.

Not problem for little issue about english or not english.

In Post only speak about this

Code:
How to: DirectAdmin admin account creation / restore admin password

To simulate the installation, execute the following:

cd /usr/local/directadmin
./directadmin i

An this show


Code:
## REPORT_START

The config file already exists:
        /usr/local/directadmin/conf/directadmin.conf

Do you really want to install DirectAdmin again? (y/n):

The server is in producction, and possible without proper backups.

Message, it is confused.

Do you really want to install DirectAdmin again? (y/n):

I do not understand well, since I do not usually use this panel and certainly, reinstalling something, does not seem like the way to reset an admin password.

That is why I ask, and I try to be cautious.

On the other hand, this information does not lead me to be certain of the procedure.

Is it stored only in a file?
Why if one site says to use passwd admin in another it says something else?

It is not that a panel that has this difficulty gives me very good vibrations for a procedure as normal as a password reset.

Certainly, I do not see neither professional nor safe to continue with a command that warns me that I am going to "reinstall"

Best regards
 
Please make sure filesystem isn't full & that there are no scripts in /usr/local/directadmin/scripts/custom/ that may prevent logging in. Your password has been changed, but there may be other reasons why you're unable to login.
 
Hi.

A lot of thanks for positive help.

- After you say me, I've checked other logs
Oh.. this morning this server get not space on device
Code:
/var/log/httpd/error_log <==
[Wed Jun 30 13:24:31.936919 2021] [log_config:warn] [pid 3718:tid 140255428572928] (28)No space left on device: [client 83.32.36.210:38490] AH00646: Error writing to /var/log/httpd/access_log
[Wed Jun 30 13:25:18.738927 2021] [log_config:warn] [pid 3717:tid 140254960830208] (28)No space left on device: [client 5.154.126.135:47366] AH00646: Error writing to /var/log/httpd/access_log
[Wed Jun 30 13:25:32.752452 2021] [log_config:warn] [pid 3735:tid 140255344654080] (28)No space left on device: [client 95.127.185.98:53812] AH00646: Error writing to /var/log/httpd/access_log
[Wed Jun 30 13:25:32.752565 2021] [log_config:warn] [pid 3717:tid 140254887401216] (28)No space left on device: [client 95.127.185.98:53831] AH00646: Error writing to /var/log/httpd/access_log
[Wed Jun 30 13:26:32.883605 2021] [log_config:warn] [pid 3727:tid 140255134856960] (28)No space left on device: [client 95.127.185.98:53887] AH00646: Error writing to /var/log/httpd/access_log

Despite is that when I login and execute df, thre're space. But apache is broke... restart apache and normal procedure work for restore password.

Code:
[root@servidor ~]# df -h
Filesystem      Size  Used Avail Use% Mounted on
rootfs           20G   14G  5,1G  73% /
devtmpfs        7,9G  228K  7,9G   1% /dev
tmpfs           7,9G  4,0K  7,9G   1% /dev/shm
/dev/md3         20G   14G  5,1G  73% /
/dev/md2        247M   90M  145M  39% /boot
/dev/md4        1,8T  889G  833G  52% /home

I apreciate for your response.
Best regards.
 
Back
Top