Remote file management across the entire server and its subdomains

What type of hardware are you using: Old laptop or computer
What YunoHost version are you running: 12.0.17
How are you able to access your server: SSH
Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: No

Describe your issue

I have successfully set up a Mastodon instance on my root domain, but any other application has since demanded its own domain, so I have created a library.domain subdomain to install calibre-web.

I have successfully added an external USB hard drive to the server which is recognised on boot, to store media files.

So, I want to be able to upload files to that drive. If I install a file manager, I am asked to put that in a different subdomain, so would it see the ‘whole’ server?

How can I manage files remotely across the entire server and subdomains?

Oh, yeah, and my main machine I’d need to do this from is a Mac.

Share relevant logs or error messages

NA

When you install an app on a domain, you can’t install other apps on that domain. And some apps require a dedicated domain to work. Some others can be installed on a path (/app1 /app2 /app_etc).

When you say remotely, you mean outside the local network (over the Internet)?
You can connect over sftp using root user on the local network. Otherwise, you can use webmin that has a file manager (in tools section) or use nextcloud and add your USB drive as an external storage (in nextcloud admin > external storage > add local), though you have to set the correct permissions for the USB drive to allow nextcloud to have access to it. There other file managers on the catalog but I didn’t try them, they will certainly require some configuration to get access to the USB drive.

1 Like

Thank you! I’ve set up access through SFTP now.

Sorry for such a basic question. I’m still new to all this, and realise I might be asking obvious things. I don’t mean to be frustrating, and I really appreciate the help!

I understand I can’t login as root, but my admin user doesn’t have permissions to create directories etc via this connection.

How do I either login as root, or enable full access via SFTP for my admin user?

I don’t recommend to sftp as root and I think this have been disabled on yunohost 12, not sure. But it was possible for root user to sftp using a password defined in the webadmin > tools >YunoHost settings >root password.

There is also a solution here Autoriser ROOT en SFTP? - #12 by kanhu
But it is not recommended.

What are you trying to achieve?

Hi.

I have set up the USB drive attached to my server to hold media files.

At the moment I’m hoping to move from Calibre for ebooks on my laptop, to calibre-web on the yunohost server.

So the first step is to move my calibre database and library to the external drive vie SFTP from my Mac.

I’m hoping to to then embark upon a Jellyfin journey once I have calibre working…

So why don’t you just plug the USB drive to your mac and copy the data directly then fix the ownership /permissions on the server?

Well, the USB is ext4 formatted and the Mac doesn’t read that, so I had hoped to do everything via SFTP.

Also, even if I put all the data on there, I still don’t understand the permissions issue, so the problem would remain.

When I get to trying Jellyfin etc, I imagine this is all only going to get more complex, so I feel like I need to get a better grip on it.

Sorry, I think I need to go away and read a tonne of books.

On the webadmin > Tools > YunoHost settings > Change root password

On filezilla use ‘root’ as user and provide the password that you just set.

What did you do so far?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.