Menu Close

Reset root password for Peertube

Considering donating if you found my post helpful ๐Ÿ˜Š

Buy Me a Coffee QR Code

Somehow when Googling on how to reset root password for Peertube, no related results were shown. If you forgot your root password on Peertube, and trying to find a way to reset, keep reading.

Resetting password for root or other users are easy,

# Basic installation
$ cd /var/www/peertube/peertube-latest
$ sudo -u peertube NODE_CONFIG_DIR=/var/www/peertube/config NODE_ENV=production npm run reset-password -- -u target_username

# Docker installation
$ cd /var/www/peertube-docker
$ docker-compose exec -u peertube peertube npm run reset-password -- -u target_username
  • You will need to replace target_username with the one you want to reset. If root, just replace it with root.
  • If you are using docker, replace /var/www/peertube-docker with your actual project folder.

You will then will get prompted to enter your new password

Reset root password for Peertube 1

Just enter a new password and repeat if needed.

You are now done ๐Ÿ™‚


Reference:

Considering donating if you found my post helpful ๐Ÿ˜Š

Buy Me a Coffee QR Code
5 1 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x