doc/manual.docbook
changeset 161 475a05ed5f0e
parent 160 72cb7a42650a
child 162 1c0bc7d33648
equal deleted inserted replaced
160:72cb7a42650a 161:475a05ed5f0e
    97 <title>Adding other users</title>
    97 <title>Adding other users</title>
    98 <para>
    98 <para>
    99 At this stage, no-one but you has any access to any repositories you
    99 At this stage, no-one but you has any access to any repositories you
   100 create on this system. In order to give anyone else access, you'll need a
   100 create on this system. In order to give anyone else access, you'll need a
   101 copy of their SSH public key; we'll assume you have that key in
   101 copy of their SSH public key; we'll assume you have that key in
   102 <filename>~/sam-key.pub</filename>.  To manage access, you make changes to the special <filename
   102 <filename>~/sam-saucer-key.pub</filename>.  To manage access, you make changes to the special <filename
   103 class='directory'>hgadmin</filename> repository.
   103 class='directory'>hgadmin</filename> repository.
   104 </para>
   104 </para>
   105 <screen><computeroutput>jay@spoon:~$ </computeroutput><userinput>hg clone ssh://hg@jeeves/hgadmin</userinput>
   105 <screen><computeroutput>jay@spoon:~$ </computeroutput><userinput>hg clone ssh://hg@jeeves/hgadmin</userinput>
   106 <computeroutput>destination directory: hgadmin
   106 <computeroutput>destination directory: hgadmin
   107 no changes found
   107 no changes found
   108 updating working directory
   108 updating working directory
   109 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
   109 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
   110 jay@spoon:~$ </computeroutput><userinput>cd hgadmin</userinput>
   110 jay@spoon:~$ </computeroutput><userinput>cd hgadmin</userinput>
   111 <computeroutput>jay@spoon:~/hgadmin$ </computeroutput><userinput>mkdir -p keys/users/sam</userinput>
   111 <computeroutput>jay@spoon:~/hgadmin$ </computeroutput><userinput>mkdir -p keys/users/sam</userinput>
   112 <computeroutput>jay@spoon:~/hgadmin$ </computeroutput><userinput>cp ~/sam-key.pub keys/users/sam/their-workstation</userinput>
   112 <computeroutput>jay@spoon:~/hgadmin$ </computeroutput><userinput>cp ~/sam-saucer-key.pub keys/users/sam/saucer</userinput>
   113 <computeroutput>jay@spoon:~/hgadmin$ </computeroutput><userinput>hg add</userinput>
   113 <computeroutput>jay@spoon:~/hgadmin$ </computeroutput><userinput>hg add</userinput>
   114 <computeroutput>adding keys/users/sam/their-workstation
   114 <computeroutput>adding keys/users/sam/saucer
   115 jay@spoon:~/hgadmin$ </computeroutput><userinput>hg commit -m "Add Sam's key'"</userinput>
   115 jay@spoon:~/hgadmin$ </computeroutput><userinput>hg commit -m "Add Sam's key'"</userinput>
   116 <computeroutput>jay@spoon:~/hgadmin$ </computeroutput><userinput>hg push</userinput>
   116 <computeroutput>jay@spoon:~/hgadmin$ </computeroutput><userinput>hg push</userinput>
   117 <computeroutput>pushing to ssh://hg@jeeves/hgadmin
   117 <computeroutput>pushing to ssh://hg@jeeves/hgadmin
   118 searching for changes
   118 searching for changes
   119 remote: adding changesets
   119 remote: adding changesets