Hi,<br><br>Take a look at these links [1,2].<br><br>In /lib/one/ruby/simple_permissions.rb (or $ONE_LOCATION/lib/ruby/simple_permissions.rb in a self-contained installation) you have to modify the auth_object method. Assuming you want to give user 7 the same authorization as oneadmin:<br>
<br>--- a/src/authm_mad/simple_permissions.rb<br>+++ b/src/authm_mad/simple_permissions.rb<br>@@ -78,7 +78,7 @@ class SimplePermissions<br> # Authorizes each of the tokens. All parameters are strings. Pub<br> # means public when "1" and private when "0"<br>
def auth_object(uid, object, id, action, owner, pub)<br>- return true if uid=='0'<br>+ return true if (uid=='0' || uid=='7')<br> <br> auth_result=false<br><br>Best regards,<br>
Carlos.<br><br>[1] <a href="http://opennebula.org/documentation:rel2.2:users">http://opennebula.org/documentation:rel2.2:users</a><br>[2] <a href="http://opennebula.org/documentation:rel2.2:auth">http://opennebula.org/documentation:rel2.2:auth</a><br>
<br> <br clear="all"><span style="border-collapse:collapse;color:rgb(136, 136, 136);font-family:arial, sans-serif;font-size:13px">--<br>Carlos Martín, MSc<br>Project Major Contributor<br><span style="background-color:rgb(255, 255, 204);color:rgb(34, 34, 34);background-repeat:initial initial">OpenNebula</span> - The Open Source Toolkit for Cloud Computing<br>
<a href="http://www.opennebula.org/" style="color:rgb(42, 93, 176)" target="_blank">www.<span style="background-color:rgb(255, 255, 204);color:rgb(34, 34, 34);background-repeat:initial initial">OpenNebula</span>.org</a> | <a href="mailto:cmartin@opennebula.org" style="color:rgb(42, 93, 176)" target="_blank">cmartin@<span style="background-color:rgb(255, 255, 204);color:rgb(34, 34, 34);background-repeat:initial initial">opennebula</span>.org</a></span><br>
<br><br><div class="gmail_quote">On Wed, Jun 1, 2011 at 12:24 PM, salma rebai <span dir="ltr"><<a href="mailto:rebai.salma@gmail.com">rebai.salma@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi all,<div>I work with Opennbeula2.2. I would know is that possible to create a second administrator account to opennebula( an internel user). What should I do to create an internal user to OpenNebula. Is there some configuration in the auth file to make.</div>
<div>Thanks in advance.<br clear="all"><br>-- <br>Salma REBAI<br>Ingénieur Informatique<br>
Mastère Réseaux et Systèmes Multimédia<br>Ecole Nationale des Sciences Informatiques Univ. Manouba, Tunisie<br>Institut Télécom SudParis<br><a href="mailto:rebai.salma@gmail.com" target="_blank">rebai.salma@gmail.com</a><br>
</div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br>