FTP Readonly Access to Minecraft Mods, for Automatic Update Application

OS Name/Version: Ubuntu 22.0.4

Product Name/Version: Amp Pro server 2.5 - 20240322.1

Problem Description:

I want (S)FTP read only access to the mods folder in a Minecraft instance for an automatic client update program I have created. There doesn’t appear to be a way to create a user and group to do this and if there is I could not figure it out or find anything online to show how to do it.

I also installed separate FTP server in to Ubuntu and mapped the mods folder from the Minecraft instance in to its FTP root directory, but when I tested with my FTP client it was empty. Back to the terminal and sure enough it is empty. I did a search for files with the same name as one of the mods and found all the mods in /home/amp/.ampdata/instances/Survival01/Minecraft/.trash/mods/ClaimChunk-1.20-1.0.17.jar

I have AMP set to run each instance in a Docker container and I’m not the most familiar with Docker. I’m pretty sure this doesn’t make any sense.

Actions taken to resolve so far:

I have tried changing the permissions on the mods folder, deleting the .trash folder and reuploading the mods to the mods folder, using a 3rd part FTP server, searching google and the forums.

You should be able to create a utility user for this using AMP’s permission system:
Though you could also just run a script as the amp Linux user to preserve file permissions, or alternatively use the AMP API to update smaller files (there’s a download-from-url API method too). More info surrounding the API here: https://github.com/p0t4t0sandwich/ampapi-spec