site/wiki/pages/administration.md

51 lines
1.3 KiB
Markdown
Raw Normal View History

2018-06-10 01:16:31 +00:00
---
author: ~ben
published: false
title: administration
description: advanced ssh tutorial
category:
- main
---
# administration
---
## adding users
1. create a new user account:
```bash
sudo adduser newusername
```
use the default password `tilde`
2018-06-12 16:08:55 +00:00
1. su newusername and then copy the ssh key into ~/.ssh/known_hosts
2018-06-10 01:16:31 +00:00
2018-06-12 16:08:55 +00:00
1. respond to their email with their account information (template coming soon), including a reminder to set up their .forward file if desired, and encourge them to hop onto irc/#meta to meet the community
2018-06-10 01:16:31 +00:00
2018-06-12 16:08:55 +00:00
automated account creation is something that i would like to look into. maybe this can be an admin portal (similar to ~town) that would notify admins when a new signup arrives and prompt them to go to the web interface to approve/deny/respond to the account request.
2018-06-11 01:37:24 +00:00
2018-06-10 01:16:31 +00:00
---
## backups
tilde.team uses [tarsnap](https://tarsnap.com) for backups and is configured to save 12 hourly backups, 7 daily backups, 6 weekly backups, and 2 years' worth of monthly backups.
to see a list of the backups:
```bash
sudo tarsnap --list-archives
```
to restore a backup:
```bash
2018-06-11 01:37:24 +00:00
tarsnap -x -f name-of-backup
2018-06-10 01:16:31 +00:00
```
we keep backups of:
* `/home`
* `/etc`
* `/var` (excluding `/var/log`)
see the [tarsnap documentation](https://www.tarsnap.com/usage.html) for more information.