Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Solved: SSD Access Issues
#4
@Hwrd69 

First of all, moOde and Volumio are different animals. Comparing their behavior here is pointless.

Second, AFAIK, using sftp you have to connect to your moOde player with the player's default username and password. Trouble is, the music sources such as /media/<your SSD mount-name> are mounted as owner root:root and your default user can't modify anything on them directly. 

When you're logged directly into moOde you get around this by invoking the sudo command (you can look it up if this is new to you). The conundrum is how to do it remotely. Using SMB access as user "guest" is the path of least resistance since Tim's taken care of things behind the scenes. However, if you insist on using sftp there is a way...

You don't say what host OS you're working with. From my Linux laptop, this works once I installed the deb package openssh-sftp-server (it's installed by default on my Pi400 running Raspberry Pi OS):

assuming xxx is my moOde-player username and yyy is my moOde-player hostname



Code:
sftp -s "sudo /usr/lib/openssh/sftp-server" xxx@yyy.local
yyy.local's password:
Connected to yyy.local.
sftp>

Where my entry of the moOde user's password is blanked by sftp.

At this point I'm in user xxx's home directory with root privileges. I can navigate by the usual Linux commands to my SSD which is mounted in a m.2-to-USB enclosure and has the name Data.


Code:
cd /media/Data

At this point I can use the usual sftp commands, notably 'put' to transfer a file from my local host to my moOde player and have it saved with root:root ownership.

Regards,
Kent
Reply


Messages In This Thread
SSD Access Issues - by Hwrd69 - 09-23-2024, 08:04 PM
RE: SSD Access Issues - by Tim Curtis - 09-23-2024, 08:16 PM
RE: SSD Access Issues - by Tim Curtis - 09-23-2024, 09:24 PM
RE: SSD Access Issues - by TheOldPresbyope - 09-23-2024, 09:27 PM
RE: SSD Access Issues - by Skip Pack - 09-23-2024, 09:34 PM
RE: SSD Access Issues - by Skip Pack - 09-23-2024, 09:40 PM
RE: SSD Access Issues - by Skip Pack - 09-23-2024, 09:46 PM
RE: SSD Access Issues - by Skip Pack - 09-25-2024, 10:34 PM
RE: SSD Access Issues - by Tim Curtis - 09-25-2024, 11:13 PM
RE: SSD Access Issues - by Skip Pack - 09-26-2024, 12:44 AM
RE: SSD Access Issues - by Tim Curtis - 09-26-2024, 10:34 AM
RE: SSD Access Issues - by TheOldPresbyope - 09-26-2024, 12:00 PM
RE: SSD Access Issues - by Hwrd69 - 09-30-2024, 01:01 PM
RE: SSD Access Issues - by matzemedia - 01-06-2025, 09:02 PM

Forum Jump: