read file permissions
Tuesday, 20 August 2019 · 3 messages · last reply 21 Aug 2019
ВВ
Ветошкин Владимир20 Aug 2019 15:20 #
Hi, everybody.
I think my goal is simple, but I don't how to solve it :)
How to grant user to read the file (xml)? Or all files in a directory. The user has only permissions to read some databases.
--
С уважением,
Ветошкин Владимир Владимирович
CG
Christian Grün21 Aug 2019 16:56 #
Hi Владимир,
BaseX has access permissions on global and on database level [1]. If you want to restrict permission to specific collection paths and resources (documents, binary files), you will need to add some server-side application logic and e.g. use RESTXQ as access layer.
Best,
Christian
[1] http://docs.basex.org/wiki/User_Management#Operations
http://docs.basex.org/wiki/User_Management#Operations
Quoted text · Ветошкин Владимир · 12 lines
On Tue, Aug 20, 2019 at 3:20 PM Ветошкин Владимир <en-trance at yandex.ru> wrote: > > Hi, everybody. > > I think my goal is simple, but I don't how to solve it :) > How to grant user to read the file (xml)? Or all files in a directory. > The user has only permissions to read some databases. > > -- > С уважением, > Ветошкин Владимир Владимирович >
ВВ
Ветошкин Владимир21 Aug 2019 18:35 #
Hi, Christian!
Thank you!
The files could be used in the future and I have decided to put these files to the database. It's much easier for me :)
Quoted text · Christian Grün · 28 lines
21.08.2019, 17:56, "Christian Grün" <christian.gruen at gmail.com>: > Hi Владимир, > > BaseX has access permissions on global and on database level [1]. If > you want to restrict permission to specific collection paths and > resources (documents, binary files), you will need to add some > server-side application logic and e.g. use RESTXQ as access layer. > > Best, > Christian > > [1] http://docs.basex.org/wiki/User_Management#Operations > > > > http://docs.basex.org/wiki/User_Management#Operations > On Tue, Aug 20, 2019 at 3:20 PM Ветошкин Владимир <en-trance at yandex.ru> wrote: > > > Hi, everybody. > > > > I think my goal is simple, but I don't how to solve it :) > > How to grant user to read the file (xml)? Or all files in a directory. > > The user has only permissions to read some databases. > > > > -- > > С уважением, > > Ветошкин Владимир Владимирович > >
--
С уважением,
Ветошкин Владимир Владимирович
Written for BaseX 9.2. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery