Changes between Initial Version and Version 1 of Internal/UserManagement


Ignore:
Timestamp:
Sep 10, 2008, 6:48:09 PM (16 years ago)
Author:
Joseph F. Miklojcik III
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Internal/UserManagement

    v1 v1  
     1This may eventually turn into something with more documentation on the new user management features in ORBIT Trac.
     2
     3== The {{{useradmin}}} account ==
     4
     5The useradmin account has permission to do stuff like {{{mkdir /export/home/foo}}} on repository2.  The idea is that automated processes do stuff by logging into it using ssh keypairs.  For example, here's a quick test to see if you can do things as useradmin@repostiory2 as www-data on external1:
     6
     7{{{
     8(Wed Sep 10 14:38:43) (root@external1:~)
     9bash> su - www-data
     10www-data@external1:~$ ssh-add
     11Could not open a connection to your authentication agent.
     12www-data@external1:~$ ssh-agent
     13SSH_AUTH_SOCK=/tmp/ssh-MBTyO32174/agent.32174; export SSH_AUTH_SOCK;
     14SSH_AGENT_PID=32175; export SSH_AGENT_PID;
     15echo Agent pid 32175;
     16www-data@external1:~$ SSH_AUTH_SOCK=/tmp/ssh-MBTyO32174/agent.32174; export SSH_AUTH_SOCK;
     17www-data@external1:~$ SSH_AGENT_PID=32175; export SSH_AGENT_PID;
     18www-data@external1:~$ echo Agent pid 32175;
     19Agent pid 32175
     20www-data@external1:~$ ssh-add
     21Identity added: /var/www/.ssh/id_rsa (/var/www/.ssh/id_rsa)
     22www-data@external1:~$ ssh useradmin@repository2 sudo mkdir /export/home/corge
     23www-data@external1:~$ ssh useradmin@repository2 sudo rmdir /export/home/corge
     24}}}
     25
     26The lack of password protection on the private key in {{{~www-data/.ssh}}} is a concern, but pretty much the best way to go when www-data is going to be all automated web scripts.  Feel free to add more public keys to {{{~useradmin/.ssh/authorized_keys}}}.