On Mon, 07 Dec 2009, Benoit Thiell wrote:
> I reset the rights and for some reason, the admin user lost his admin
> powers. So now I am unable to access the admin panel and am unable to
> run the webaccessadmin command. How could I fix this? Is there an
> automated script that would reload correct access values in the DB?

`` /opt/cds-invenio/bin/webaccessadmin -u admin -r'' is the command to
use to reset correct values.  It works well even if you wipe out all
actions from the table.  So here are some tips to check:

1) Is the admin person well configured in the config file and in the DB?

$ echo "SELECT email FROM user WHERE nickname='admin'" | \
  /opt/cds-invenio/bin/dbexec

$ grep -i ADMIN_EM /opt/cds-invenio/lib/python/invenio/config.py

2) If the admin person was changed in invenio-local.conf, then it should
be propagated to both the config file and the DB:

$ sudo -u www-data /opt/cds-invenio/bin/inveniocfg --update-config-py
$ sudo -u www-data /opt/cds-invenio/bin/inveniocfg --reset-siteadminemail

3) Looking at adsate's page footer, it would seem that both Giovanni and
you are listed as `maintainers' there?  Is CFG_SITE_ADMIN_EMAIL set to a
list of two email addresses perhaps?  It should be a single address, and
the additional site admins should be just regular user accounts that are
attached to the `superadmin' role in the WebAccess Admin interface.

4) Are the SQL table definitions okay?  Maybe columns weren't updated
since the site was originally created, but require an update?  To be
safe, you can drop acc* tables and recreate them anew from tabcreate.sql
and repopulate them via the above webaccessadmin call.

> Name       : mod_wsgi
> Arch       : x86_64
> Version    : 2.1
> Release    : 2.el5

A bit old, but I have just tested 2.1 on SLC5 and the admin links work
fine.

Best regards
--
Tibor Simko ** CERN Document Server ** <http://cds.cern.ch/>

Reply via email to