summaryrefslogtreecommitdiff
path: root/doc/README
blob: 9dc8753f7cdfb2895fc2fa4cc1c633ac0d38109c (plain)
  1. Monkeysphere README
  2. -------------------
  3. Default file locations:
  4. MS_HOME=~/.config/monkeysphere
  5. STAGING_AREA=$MS_HOME
  6. GNUPGHOME=~/.gnupg
  7. $MS_HOME/monkeysphere.conf
  8. $MS_HOME/auth_host_ids
  9. $MS_HOME/auth_user_ids
  10. $STAGING_AREA/host_keys/KEYHASH
  11. $STAGING_AREA/known_hosts
  12. $STAGING_AREA/user_keys/KEYHASH
  13. $STAGING_AREA/authorized_keys
  14. For a user to update their ms known_hosts file:
  15. $ rhesus --known_hosts
  16. For a user to update their ms authorized_keys file:
  17. $ rhesus --authorized_keys
  18. A system can maintain ms authorized_keys files for it's users. Some
  19. different variables need to be defined to help manage this. The way
  20. this is done is by first defining a new MS_HOME:
  21. MS_HOME=/etc/monkeysphere
  22. This directory would then have a monkeysphere.conf which defines the
  23. following variables:
  24. AUTH_USER_FILE="$MS_HOME"/auth_user_ids/"$USER"
  25. STAGING_AREA=/var/lib/monkeysphere/stage/$USER
  26. GNUPGHOME=$MS_HOME/gnupg
  27. To update the ms authorized_keys file for user "foo", the system would
  28. then run the following:
  29. # USER=foo MS_HOME=/etc/monkeysphere rhesus --authorized_keys
  30. To update the ms authorized_keys file for all users on the the system:
  31. MS_HOME=/etc/monkeysphere
  32. for USER in $(ls -1 /etc/monkeysphere/auth_user_ids) ; do
  33. rhesus --authorized_keys
  34. done