| 1 | = How do I create a backup account for a member? = |
| 2 | |
| 3 | The steps for creating a backup account for a member are: |
| 4 | |
| 5 | 1. Find a backup server with available space. |
| 6 | 2. As `root@BACKUP_SERVER` do |
| 7 | {{{ |
| 8 | useradd MEMBER_NAME-sync |
| 9 | }}} |
| 10 | 3. Create a backup directory for the MEMBER_NAME-sync user at /home/members/MEMBERNAME-sync/backups |
| 11 | {{{ |
| 12 | mkdir -p /home/members/MEMBER_NAME-sync/backups |
| 13 | }}} |
| 14 | 4. Change ownership of that directory to the MEMBER_NAME-sync user. |
| 15 | {{{ |
| 16 | chown MEMBER_NAME-sync:MEMBER_NAME-sync /home/members/MEMBER_NAME-sync/backups |
| 17 | }}} |
| 18 | 5. login as the MEMBER_NAME-sync user. |
| 19 | {{{ |
| 20 | su - MEMBER_NAME-sync |
| 21 | }}} |
| 22 | 6. Create a symlink to the backup directory from the member's home directory. |
| 23 | {{{ |
| 24 | ln -s /home/members/MEMBER_NAME-sync/backups backups |
| 25 | }}} |
| 26 | 7. Add the rsa key for the user or their monkeysphere/gpg user id to the /home/MEMBER-NAME-sync/.ssh/authorized_keys file or /home/MEMBER-NAME-sync/.monkeysphere/authorized_user_ids file respectively. Then run |
| 27 | {{{ |
| 28 | monkeysphere-authentication u MEMBER_NAME-sync |
| 29 | }}} |
| 30 | |
| 31 | The member should now be able to ssh into the server with `ssh MEMBER_NAME-sync@SERVER_NAME.mayfirst.org`. If they can, then your task is complete! |