[Pulp-list] Resetting pulp admin user password and permissions

Dennis Kliban dkliban at redhat.com
Thu Jan 11 16:59:07 UTC 2018


The solution was to execute the following in a python shell:

from pulp.server.db.connection import initialize; initialize()
from pulp.server.controllers.user import update_user
update_user('admin', {'password':'yournewpassword'})

On Thu, Jan 11, 2018 at 11:21 AM, Paul Urwin <register at paulurwin.com> wrote:

> This is now resolved, I was assisted on the #pulp freenode channel :)
>
>
> On Thu, 11 Jan 2018 at 12:14 Paul Urwin <register at paulurwin.com> wrote:
>
>> Can anyone point me in the right direction?
>>
>> Cheers
>>
>> Paul
>>
>>
>> On Tue, 9 Jan 2018, 13:07 Paul Urwin, <register at paulurwin.com> wrote:
>>
>>> Hello,
>>>
>>> What's the procedure to reset the admin password and permissions, my
>>> host seems to now have a blank admin password, which I can log in with but
>>> then the admin user doesn't have the rights to change it or perform various
>>> types of other operation.
>>>
>>> e.g. after logging in as admin
>>>
>>> <SNIP>
>>> # pulp-admin auth permission list --resource /
>>>
>>> +----------------------------------------------------------------------+
>>>
>>> Permissions for /
>>>
>>> +----------------------------------------------------------------------+
>>>
>>>
>>>
>>> The specified user does not have permission to execute the given command
>>> </SNIP>
>>>
>>>
>>> Thanks!
>>>
>>> Paul
>>>
>>
> _______________________________________________
> Pulp-list mailing list
> Pulp-list at redhat.com
> https://www.redhat.com/mailman/listinfo/pulp-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pulp-list/attachments/20180111/a7a0ea32/attachment.htm>


More information about the Pulp-list mailing list