CKAN DataStore - Set permissions

天涯浪子 提交于 2019-12-11 12:05:20

问题


(I am not an IT guy, so some of my doubts may seem pretty basic / strange)

Through this tutorial (https://github.com/ckan/ckan/wiki/How-to-install-CKAN-2.0-on-CentOS-7) I was able to install CKAN.

After, I understood that I would need the DataStore extension for the preview function work well on my installation. Using the documentation I get staked in Set Permissions step (http://docs.ckan.org/en/ckan-2.2/datastore.html#set-permissions), in something that I can not understand

I make

 paster datastore set-permissions postgres -c /etc/ckan/default/development.ini

and it ask me for the ckan password

WARNI [ckanext.datastore.plugin] Omitting permission checks because you are running paster commands.
[sudo] password for ckan:

but witch password?

when installing CKAN I had to create a ckan user by doing:

useradd -m -s /sbin/nologin -d /usr/lib/ckan -c "CKAN User" ckan

but I haven't define any password

If I just give "enter" and won't accept I tried also to give the password of the sysadmin I created for the Ckan site and also don't work

I really like some help to known what I should do with this.

thanks in advance, Pedro


回答1:


It looks as though you may be running your virtualenv as user: ckan - which probably won't have the required permissions.

If you are, return back to user: root by typing exit or pressing Ctrl + D.

If you did a source install, make sure to have your virtualenv activated as root and then run the paster command again from your CKAN source directory.

eg.

. /usr/lib/ckan/default/bin/activate cd /usr/lib/ckan/default/src/ckan




回答2:


I've added a note about this https://github.com/ckan/ckan/wiki/How-to-install-CKAN-2.x-on-CentOS-7 to avoid other people falling into this trap



来源:https://stackoverflow.com/questions/34271329/ckan-datastore-set-permissions

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!