FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Build System

 
 
LinkBack Thread Tools
 
Old 09-28-2011, 03:42 PM
"Vijay N. Majagaonkar"
 
Default This action requires admin privileges

I am not able to*perform any admin actions on koji server.
I started setting up local koji server using*http://fedoraproject.org/wiki/Koji/ServerHowTo*this as help page and following is my current environment.


fedora 12 x86_64 bit*
koji pkgs -*koji-hub-1.4.0-2.fc12.noarchkoji-1.4.0-2.fc12.noarch
I have configured system till hub setup where we can perform command line actions, and here I am able to connect to server but failed to add user or new tag to koji server.


[kojiadmin@kojiblr ~]$ koji -d list-pkgs*successfully connected to hub(no matching packages)[kojiadmin@kojiblr ~]$ koji -d list-tagssuccessfully connected to hub


[kojiadmin@kojiblr ~]$ koji -d add-tag dist-panthorsuccessfully connected to hubThis action requires admin privileges


[kojiadmin@kojiblr ~]$ koji -d add-user kojirasuccessfully connected to hubThis action requires admin privileges


I have added kojiadmin into DB as admin user,
*koji=> select * from users;*id | * * * name * * * *| password | status | usertype | krb_principal*

----+-------------------+----------+--------+----------+---------------* 2 | kojiadmin * * * * | * * * * *| * * *0 | * * * *0 |*
koji=> select * from user_perms;*user_id | perm_id | create_event | revoke_event | creator_id | revoker_id | active*

---------+---------+--------------+--------------+------------+------------+--------* * * *2 | * * * 1 | * * * * * *5 | * * * * * * *| * * * * *2 | * * * * * *| t




Can someone point me where missed any configuration that causing me to run an admin commands on koji.


Thanks for the help

--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
 
Old 10-11-2011, 08:58 PM
Mike McLean
 
Default This action requires admin privileges

On 09/28/2011 11:42 AM, Vijay N. Majagaonkar wrote:
> I am not able to perform any admin actions on koji server.

Most likely your client is not authenticating. Did you set up
~/.koji/config? What does 'koji call getLoggedInUser' report?

...
> [kojiadmin@kojiblr ~]$ koji -d list-tags
> successfully connected to hub
>
> *[**kojiadmin**@kojiblr ~]$ koji -d add-tag dist-panthor*
> *successfully connected to hub*
> *This action requires admin privileges*
--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
 
Old 10-17-2011, 07:25 AM
"Vijay N. Majagaonkar"
 
Default This action requires admin privileges

Hi Mike,*
My*apologize*for delay in reply.
Now I am able to connect the server and run admin commands/actions ...*
Issue was with ssl*certificate generation process, I was using*different name to generate certificate for kojiadmin user and that was causing me to run admin commands/actions*



Thanks to koji source code helped me to debug the issue


Thanks for the help
-----Original Message-----

From: buildsys-bounces@lists.fedoraproject.org [mailto:buildsys-bounces@lists.fedoraproject.org] On Behalf Of Mike McLean

Sent: Wednesday, October 12, 2011 2:28 AMTo: buildsys@lists.fedoraproject.orgSubject: Re: This action requires admin privileges


On 09/28/2011 11:42 AM, Vijay N. Majagaonkar wrote:> I am not able to perform any admin actions on koji server.
Most likely your client is not authenticating. Did you set up ~/.koji/config? What does 'koji call getLoggedInUser' report?


...> [kojiadmin@kojiblr ~]$ koji -d list-tags successfully connected to hub>> *[**kojiadmin**@kojiblr ~]$ koji -d add-tag dist-panthor**> *successfully connected to hub* *This action requires admin*

> privileges*--buildsys mailing listbuildsys@lists.fedoraproject.orghttps://admin.fedoraproject.org/mailman/listinfo/buildsys




--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
 

Thread Tools




All times are GMT. The time now is 08:07 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org