# Roles and permissions

Everyone on a team has one of four roles. Starter teams have one person. Pro, Business and the trial add teammates and roles.

## The roles

| Role      | Can do                                                                                                                                     |
| --------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| Owner     | Everything, including billing, deleting the team and handing ownership to someone else.                                                    |
| Admin     | Everything except billing, deleting the team and changing its owner.                                                                       |
| Developer | Create servers, including in the team's connected cloud accounts, and projects, apps and databases, with full control of what they create. |
| Deployer  | Deploy and read logs on what they can see. They can't change settings or see secrets.                                                      |

Developers can't connect or remove the team's cloud accounts, manage members, or change team settings.

## What each role sees

| Role      | Sees                                                                                   |
| --------- | -------------------------------------------------------------------------------------- |
| Owner     | Everything.                                                                            |
| Admin     | Everything, or only what's shared with them. The Owner chooses.                        |
| Developer | What they added, and what's shared with them. Apps and databases they add stay theirs. |
| Deployer  | Everything, or only what's shared with them. The Owner chooses.                        |

[Invite people and share access](/docs/teams/people) covers sharing and holding things back.

## Databases

|                     | Owner, Admin | Developer                            | Deployer              |
| ------------------- | ------------ | ------------------------------------ | --------------------- |
| See databases       | Yes          | Their own, and ones shared with them | Ones shared with them |
| Create and delete   | Yes          | Their own                            | No                    |
| See credentials     | Yes          | Their own                            | No                    |
| Back up and restore | Yes          | Their own                            | No                    |

## SSH access

People sign in to servers with SSH and their own keys, added under **Settings**, **General**.

| Role      | Their keys go onto         |
| --------- | -------------------------- |
| Owner     | Every server they can see. |
| Admin     | Every server they can see. |
| Developer | The servers they added.    |
| Deployer  | No server.                 |

Nobody's keys go onto a server where an app or database is held back from them, or onto the machine self-hosted Coresmith runs on. Keys go on as the server's SSH user, often root, so treat Owners and Admins as having a shell on every server they can see, and Developers on the servers they add. Each server's **Hardening** tab lists the people whose keys are on it.

## Terminals in the browser

|                          | Owner                               | Admin | Developer                 | Deployer |
| ------------------------ | ----------------------------------- | ----- | ------------------------- | -------- |
| A shell as an app's user | Yes                                 | No    | On the servers they added | No       |
| A root shell             | Yes, while **Root terminals** is on | No    | No                        | No       |

**Root terminals** is under **Settings**, **Team**, and only Owners can change it. [Open a terminal on a server](/docs/servers/terminal) covers the rest.

## What Owners and Admins can do to any server

Owners, and Admins who see everything, can change every server on the team, including ones a Developer added: reboot it, change its firewall, deploy, roll back, and take it out of Coresmith.
