2020-11-24 15:56:53 +01:00
---
2022-02-09 09:37:52 +01:00
title: Change Default Passwords
sidebar_position: 3
2020-11-24 15:56:53 +01:00
---
2022-02-10 12:15:23 +01:00
## LibreTime
2020-11-24 15:56:53 +01:00
To change the password of the current user:
2022-02-10 12:15:23 +01:00
1. Log in to LibreTime
2020-11-24 15:56:53 +01:00
2. Click on the username in the upper right corner (next to Log Out)
3. Enter the new password twice and click **Save**
2021-05-27 16:20:34 +02:00
To change the password for a different user (requires _Administrator_ privileges):
2020-11-24 15:56:53 +01:00
2022-02-10 12:15:23 +01:00
1. Log in to LibreTime
2020-11-24 15:56:53 +01:00
2. Go to **Settings** > **Manage Users**
3. Select the user, enter the new password twice, and click **Save**
2022-02-09 09:37:52 +01:00
## PostgreSQL
2020-11-24 15:56:53 +01:00
2021-05-27 16:20:34 +02:00
Two of the most important passwords that should be changed _immediately_ after installation
2020-11-24 15:56:53 +01:00
are the passwords used by the PostgreSQL database.
It is strongly recommended that you do this before exposing your server to the internet beyond your internal network.
1. Login to PostgreSQL with `sudo -u postgres psql` . The PostgreSQL shell - `postgres=#` - means that you have logged in successfully.
2. Change the admin password with `ALTER USER postgres PASSWORD 'myPassword';` , where `myPassword` is the new password.
2021-05-27 16:20:34 +02:00
Make sure to include the semicolon at the end! A response of `ALTER ROLE` means that the command ran successfully.
3. Change the password for the _airtime_ user with `ALTER USER airtime WITH PASSWORD 'new_password';`
A response of `ALTER ROLE` means that the command ran successfully.
2022-02-10 12:15:23 +01:00
4. If all is successful, logout of PostgreSQL with `\q` , go back to `/etc/airtime/airtime.conf` to edit the password
2021-05-27 16:20:34 +02:00
in the config file, and restart all services mentioned in the previous section.
2020-11-24 15:56:53 +01:00
2022-02-09 09:37:52 +01:00
## Icecast
2020-11-24 15:56:53 +01:00
2022-02-09 09:37:52 +01:00
Random passwords are generated for Icecast during the installation. To look up and change the passwords, edit `/etc/icecast2/icecast.xml` .
2020-11-24 15:56:53 +01:00
2021-05-27 16:20:34 +02:00
Replace the admin and _changeme_ fields below.
2020-11-24 15:56:53 +01:00
2022-02-09 09:37:52 +01:00
```xml
2020-11-24 15:56:53 +01:00
< authentication >
<!-- Sources log in with username 'source' -->
< source-password > changeme< / source-password >
<!-- Relays log in with username 'relay' -->
< relay-password > changeme< / relay-password >
<!-- Admin logs in with the username given below -->
< admin-user > admin< / admin-user >
< admin-password > changeme< / admin-password >
< / authentication >
```
2022-02-09 09:37:52 +01:00
Then, restart your icecast2 service with `sudo systemctl restart icecast2` .
2020-11-24 15:56:53 +01:00
2022-02-10 12:15:23 +01:00
> Note: If you change the source password, you may need to manually configure LibreTime to use the new password: go to **Settings** > **Streams**, set the streaming server to **Custom** and fill out the **Additional Options** below Stream 1.
2020-11-24 15:56:53 +01:00
2022-02-09 09:37:52 +01:00
## RabbitMQ
2020-11-24 15:56:53 +01:00
2022-02-09 09:37:52 +01:00
To change the default password for RabbitMQ, run the following command
2020-11-24 15:56:53 +01:00
2022-02-09 09:37:52 +01:00
```bash
2020-11-24 15:56:53 +01:00
sudo rabbitmqctl change_password airtime newpassword
```
2021-05-27 16:20:34 +02:00
and then update the `/etc/airtime/airtime.conf` file with the new password.