Easy way to change username/passwords? Topic is solved

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
rklingler

Easy way to change username/passwords?

Post by rklingler »

I'm looking at running DietPi to run a number of servers open to the internet. To that end, I would vastly prefer to change the default username/password on all installed applications (but particularly MySQL, WordPress and ownCloud.

Ideally there would be a DietPi configuration setting to make this change, but a complete walk through would also be helpful.

It seems that being able to change the default username would be useful, as it would require hackers to get both the username and password, but merely changing the password would be a good start.

Thanks in advance,
Rob
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Easy way to change username/passwords?

Post by Fourdee »

rklingler wrote:I'm looking at running DietPi to run a number of servers open to the internet. To that end, I would vastly prefer to change the default username/password on all installed applications (but particularly MySQL, WordPress and ownCloud.

Ideally there would be a DietPi configuration setting to make this change, but a complete walk through would also be helpful.

It seems that being able to change the default username would be useful, as it would require hackers to get both the username and password, but merely changing the password would be a good start.

Thanks in advance,
Rob
Hi Rob,

I'll need to create a test bed with those programs installed to be able to guide you through. Might be a few days, busy busy at the moment :).

For the most part, changing the root MySql password should suffice. Then its a case of just changing the owncloud/wordpress admin login details and updating the SQL login details. However, I'll check the programs you listed and let you know what I find.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
rklingler

Re: Easy way to change username/passwords?

Post by rklingler »

Thanks. Completely understand being busy, and no rush on this. I'll poke around some as well (when/if I have time). I have some additional apps installed as well (pi-hole, transmission, deluge, DLNA, etc.) but not sure they interact with SQL at all.
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Easy way to change username/passwords?

Post by Fourdee »

rklingler wrote:Thanks. Completely understand being busy, and no rush on this. I'll poke around some as well (when/if I have time). I have some additional apps installed as well (pi-hole, transmission, deluge, DLNA, etc.) but not sure they interact with SQL at all.
I wouldn't recommend having 2 Bit Torrent clients installed. Choose either Transmission or Deluge as both will reduce system performance.
Transmission is lightweight and efficient. Deluge is bulky and coded in python.

Owncloud:
Run this command to reset the password for user 'admin'

Code: Select all

sudo -u www-data php /var/www/owncloud/occ user:resetpassword admin
Source = https://doc.owncloud.org/server/7.0/adm ... sword.html

Transmission:
Run the following commands to edit the settings file:

Code: Select all

dietpi-services stop
nano /etc/transmission-daemon/settings.json
dietpi-services start
Once opened, change

Code: Select all

"rpc-password": "{704cebd22e85a1b2d4f10f4384e72caa17500b7dB2o23zH.",
to

Code: Select all

"rpc-password": "MyNewPassword",
Save and exit nano.

I'll check the others (mysql/wordpress etc) at later date.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Post Reply