LogicMachine Forum
How to prevent FTP access to application files (like default Logic Machine apps)? - Printable Version

+- LogicMachine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Application Store (https://forum.logicmachine.net/forumdisplay.php?fid=11)
+--- Thread: How to prevent FTP access to application files (like default Logic Machine apps)? (/showthread.php?tid=6353)



How to prevent FTP access to application files (like default Logic Machine apps)? - savaskorkmaz - 16.03.2026

Hello,
When connecting to Logic Machine via FTP, I noticed that the built-in applications inside the /data directory (for example LM Cloud) cannot be opened or browsed. FTP does not allow entering those folders.
However, for the applications that we develop ourselves and install using .ipk packages, the entire application folder is visible via FTP and it is possible to access all files inside the directory.
We would like our application to be protected in the same way as the default Logic Machine applications, so that the contents cannot be accessed or browsed via FTP.
Is there a way to package or configure our application so that the folder is protected and FTP access to its contents is prevented, similar to the built-in Logic Machine apps?
Thank you.


RE: How to prevent FTP access to application files (like default Logic Machine apps)? - forsterm - 16.03.2026

Hi,

I think you could use the command os.execute('chmod 0000 /app/dir/*') before packaging your ipk file.

BR


RE: How to prevent FTP access to application files (like default Logic Machine apps)? - savaskorkmaz - 16.03.2026

I am using packager.lp. Where should i put this command in the packager.lp. Can you be more specific please ?


RE: How to prevent FTP access to application files (like default Logic Machine apps)? - forsterm - 16.03.2026

I would insert it into the copy() function.
In the current packager.lp, it is inserted on line 34 after os.execute('mkdir....').


RE: How to prevent FTP access to application files (like default Logic Machine apps)? - admin - 16.03.2026

Correct syntax is:
Code:
os.execute('chmod -R 0000 ' .. dst .. '/' .. id)