Answer the question
In order to leave comments, you need to log in
Restricting access to a java program?
I have such a question - how to restrict access to a java program in all places except for the folder to which the file is located and the folders and files that belong to it?
Example:
-Servers
--Loader.jar
-ServerMaxic
--modder.jar
--cfg.json
--DirectoryDira
---...
And how do I make modder.jar not have access to directories other than ServerMaxic and nested in it files / folders, etc. via bash/sh?
Answer the question
In order to leave comments, you need to log in
Create a user from which you will run the program.
Create a folder where the data will be.
Do a chmod on the data folder
if that's not enough install SELINUX
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question