[PROBLEM] How to recover the database files by pi/moodeaudio, without the password of root? - Printable Version +- Moode Forum (https://moodeaudio.org/forum) +-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3) +--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7) +--- Thread: [PROBLEM] How to recover the database files by pi/moodeaudio, without the password of root? (/showthread.php?tid=2198) |
How to recover the database files by pi/moodeaudio, without the password of root? - godt2p4 - 02-21-2020 Dears, I want to recover my database files to Moode, but pi/moodeaudio has not the right to upload the files, with the error message of Permission Denied. I wonder what is the password for user "root" that I can fix my problem. Thanks a lot. BR. RE: How to recover the database files by pi/moodeaudio, without the password of root? - vinnn - 02-21-2020 Transfer files to pi's home directory as the pi user SSH into your Pi and mv the files as the root user using sudo, e.g. Code: sudo mv somefile /some/destination It they're mpd files you'll also need to change ownership back to the mpd user, e.g... Code: sudo chown -R mpd:audio /var/lib/mpd RE: How to recover the database files by pi/moodeaudio, without the password of root? - godt2p4 - 02-22-2020 (02-21-2020, 11:20 AM)vinnn Wrote: Transfer files to pi's home directory as the pi user Thanks, Vinnn. You mean I should upload the files into pi's folder at first, and Code: sudo mv database /var/lib/mpd/database -f Correct? RE: How to recover the database files by pi/moodeaudio, without the password of root? - vinnn - 02-22-2020 (02-22-2020, 07:56 AM)godt2p4 Wrote:(02-21-2020, 11:20 AM)vinnn Wrote: Transfer files to pi's home directory as the pi user Yes but you don't need the -f option and you put it in the wrong place anyway. Command options generally go after the command, not after the arguments. RE: How to recover the database files by pi/moodeaudio, without the password of root? - godt2p4 - 02-22-2020 (02-22-2020, 11:35 AM)vinnn Wrote:(02-22-2020, 07:56 AM)godt2p4 Wrote:(02-21-2020, 11:20 AM)vinnn Wrote: Transfer files to pi's home directory as the pi user Thanks Vinnn. I tried, but it seems that this kind of recovery action is only workable in the same Moode version or same Moode equipment, as I tried to recover the database from Rock64 in Moode 5.2 into Pi3B in Moode 6.4.2 and failed. Boom. |