= Design/Setup: Setup Omni with Multiple Users =
Omni gives you the capability of giving access to other users on your compute resources. Depending on which AM you are using to get resources from, this is done in a different way. If you are reserving resources in a ProtoGENI AM, then you can specify a comma separated list of users in the `users` attribute of the `[omni]` section, and specify the information for each
user in a corresponding section. Let's try this now:
{{{
#!html
|
- Ask the your neighbor for his/her usernane.
- While in a terminal, generate a public key for them under
~/.ssh/ :
- cd ~/.ssh
- ssh-keygen -f id_rsa_<neighbor_username>
- Open the omni_config file; its under
~/.gcf/omni_config
- Add the new user in the users list and add a new section using as his/her public key the key you just generated.
|
}}}
{{{
[omni]
default_cf = pg-gpo
users = alice, bob
# ---------- Users ----------
[alice]
urn = urn:publicid:IDN+pgeni.gpolab.bbn.com+user+alice
# You can define multiple keys
keys = /home/alice/.ssh/id_rsa.pub
[bob]
urn = urn:publicid:IDN+pgeni.gpolab.bbn.com+user+bob
keys = /home/alice/.ssh/bob_id_rsa.pub
[pg-gpo]
type = pg
ch = https://www.emulab.net:12369/protogeni/xmlrpc/ch
sa = https://www.pgeni.gpolab.bbn.com:12369/protogeni/xmlrpc/sa
cert = /home/alice/.ssl/pgeni/encrypted-cleartext.pem
key = /home/alice/.ssl/pgeni/encrypted-cleartext.pem
}}}