This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

How to prevent FTP access to application files (like default Logic Machine apps)?
#1
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.
Reply
#2
Hi,

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

BR
Reply
#3
I am using packager.lp. Where should i put this command in the packager.lp. Can you be more specific please ?
Reply
#4
I would insert it into the copy() function.
In the current packager.lp, it is inserted on line 34 after os.execute('mkdir....').
Best regards

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


Forum Jump: