We generally do not attempt to set permissions on files and directories
from within java.
The ability to set permissions is highly FileSystem specific, and there's
far too many FileSystem types, even on Linux, for this to make sense in
code.

We recommend that you configure the FileSessionDataStore to use a directory
that itself has the permissions limited to the specific user running Jetty.
Then it matters not what the permissions of the specific files themselves
are.

Joakim Erdfelt / joa...@webtide.com


On Wed, Oct 13, 2021 at 5:21 PM Wang Yicheng <wangyicheng1...@gmail.com>
wrote:

> Hi team,
>
> We use FileSessionDataStore to persist sessions. But we found that all
> created files are with 640 permissions, and there's no exposed interface to
> change that. Just wondering what will be the best practice to specify the
> session file permissions. Thanks!
>
> Best,
> Yicheng
> _______________________________________________
> jetty-users mailing list
> jetty-users@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/jetty-users
>
_______________________________________________
jetty-users mailing list
jetty-users@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/jetty-users

Reply via email to