最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

How to restrict file permissions for BaseX DBs on Linux? - Stack Overflow

programmeradmin1浏览0评论

I'm running a BaseX DB server on Linux, using a dedicated (unprivileged) system user who owns the BaseX directory subtree as well as the BaseX processes. To create a database, I'm using the basexclient script also running as my DB system user (sudo -u baseX bin/basexclient).

The problem is that newly created databases as described (running both server and client as system user baseX) are created with drwxrwxrwx permissions for the db subdirectory and -rw-rw-rw- permissions for the DB files. I assume such broad permissions aren't required in a server/client setup, running both server and client as an unprivileged system user. Anyone with file system access seems to be able to read / delete data, irrespective of any authentication on the DB level (because access on file system level is possible).

Is there a way to set default file permissions / restrict them to the system user who's running both server and client?

发布评论

评论列表(0)

  1. 暂无评论