09-23-2024, 09:27 PM
(This post was last modified: 09-23-2024, 09:55 PM by TheOldPresbyope.
Edit Reason: fixed a typo
)
@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
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.
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
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