How to reset ejabberd admin password? - xmpp

I forgot ejabberd admin password.
I've googling a few hours but no solution yet.
Is there any solution to reset password ?

ejabberdctl change_password admin hostname new_password
I changed admin password with this. :)

Related

Asking user name for localhost

I came up with an issue that after starting the server in jboss and I hit the localhost url for my application but it's asking for user name and password I have not configured it anywhere in my code to ask user name and password. How to over come this.
Thank you

FATAL: password authentication failed for user "postgres" pgadmin4

I'm using postgresql 12 with pgadmin4 on ubuntu 20.04. I'm having an issue with creating a new server. I don't remember specifying any password during installation but now i don't know what the password is and whatever i try to put it just gives a password error saying authentication failed. error message
You can reset the password or connect to PostgreSQL without password by modifying pgconf.hba file and then try to connect.
host all all 0.0.0.0/0 trust
Create a user and password with (don't miss the semicolon):
CREATE USER username WITH PASSWORD 'your password';
After this, try authenticating your USER in pgAdmin4
For more refer to this link: https://www.postgresql.org/docs/current/sql-createuser.html
I don't know how should I express my thanks to #1337.ishaan and #a_horse_with_no_name without which I couldn't have logged into Postgres through pgadmin4. But a small edit to that:
First we have to get inside postgres through using
sudo -u postgres psql postgres
Enter password for user postgres
Now the terminal will be like this:
postgres=#
Now enter the given line after postgres=#
CREATE USER username WITH PASSWORD 'your password';
(put your password inside quotes('') and don't forget semicolon(;)

Why doesn't Postgres ask for password for user postgres?

From what I read in my pg_hba.conf, I'm inferring that, to make sure I'm prompted for a password for the postgres user, I should edit pg_hba.conf's first two entries' method from the current 'peer' to either 'password' or 'md5', but I don't want to break things if that's wrong. Am I on the right track? Or missing something obvious?
Anyway, more details-
After installing postgres 9.4 on debian, I changed the postgres user's password by doing this-
postgres=# \password postgres
...and entering in the new password twice.
Then I exited postgres (Ctrl+D), then restarted the server from bash-
sudo service postgresql restart
When I log back into postgres (sudo -u postgres psql), I'm not prompted for the new password. I just get-
psql (9.4.9)
Type "help" for help
postgres=#
Also, the .pgpass file is in my home directory, but it's empty. Finally, first two lines of pg_hba.conf are
local all postgres [blank] peer
local all all [blank] peer
Setting a password only provides the password for authentication methods that require it. It does not add the requirement that the password be specified for login.
Whether a password is required is controlled by pg_hba.conf. The peer auth mode does not require a password, it allows a user to log in if their unix username is the same as the postgres username they're trying to connect as.
Try md5 auth if you want password authentication.

log user's password in proftpd

how can I log user's password in proftpd? I forgot his password so for now I set up anonymous login for his account to accept any password.
I want to find out his password and set it up with this correct password - but firstly I need to log it.
Many thanks.
It seems ProFTPD is explicitly designed to not log the password:
Frequently Asked Questions
Question: How can I configure proftpd to log/show the password typed by the user?
Answer: You cannot. Period. The proftpd code goes out of its way to ensure that the password is never logged.
http://www.proftpd.org/docs/howto/Authentication.html
If you need to find out the password of an active FTP account you can also use tcpdump
sudo tcpdump src x.x.x.x and dst y.y.y.y and port ftp -A

Postgresql: How to check username and (forgotten) password on a Mac?

Hi I've tried looking around for an answer but don't know how to access my local machine's postgresql username and password. I'm a big noob when it comes to the command line and bash and etc, so please help. Can someone help in helping me find out my username and password for postgres on a Mac?
Edmunds-MacBook-Pro:postgres edmundmai$ psql -d db -U postgres
Password for user postgres:
psql: FATAL: password authentication failed for user "postgres"
I don't know of a way to recover a password from PostgreSQL. However, if you add local all all trust to your pg_hba.conf file, it will allow you to log into the cluster without a password from your local machine. Once you've made the change, restart the server to get it to take effect, and then you can log in and change your password. Once you're done, be sure to remove this line from your pg_hba.conf and restart the server, as this isn't particularly secure.