Create or drop access denied for user 'guest'

471 views
Skip to first unread message

orang...@gmail.com

unread,
Jul 21, 2015, 6:30:12 AM7/21/15
to tarant...@googlegroups.com
День добрый 

Подскажите, как разрешить пользователю guest делать drop() ? Почему не хватает box.schema.user.grant('guest', 'read,write,execute', 'universe', '', { if_not_exists = true })  ?
Какой пермишн надо добавить? truncate() это конечно не совсем то. Спасибо

Konstantin Osipov

unread,
Jul 21, 2015, 7:23:42 AM7/21/15
to tarant...@googlegroups.com
* orang...@gmail.com <orang...@gmail.com> [15/07/21 13:35]:
drop() на объект сейчас может сделать только его создатель или
суперюзер.

tarantool> box.schema.space.create('test')
2015-07-21 14:22:27.974 [22222] wal I> creating `./00000000000000000000.xlog.inprogress'
---
- index: []
on_replace: 'function: 0x406181b0'
temporary: false
id: 512
engine: memtx
enabled: false
name: test
field_count: 0
- created
...

tarantool> box.schema.user.grant('guest', 'read,write,execute', 'universe')
---
...

tarantool> box.session.su('guest')
---
...

tarantool> box.space.test:drop()
---
- error: Create or drop access denied for user 'guest'
...

tarantool> box.schema.space.create('test1')
---
- index: []
on_replace: 'function: 0x4061bb88'
temporary: false
id: 513
engine: memtx
enabled: false
name: test1
field_count: 0
- created
...

tarantool> box.space.test1:drop()
---
...


--
http://tarantool.org - a NoSQL database in a Lua script
Reply all
Reply to author
Forward
0 new messages