# A gateway file belongs to another user (/docs/troubleshooting/token-file-foreign-owner)

What turno doctor means by "mcpd: <file> belongs to uid <uid>", and the fix.

This page is for when `turno doctor` reports the finding below: what it means and how to fix it.

## What you see [#what-you-see]

```text
  x  mcpd: <file> belongs to uid <uid>
     fix: sudo chown "$(id -un)" <file>
```

It is a failure; a failure makes `turno doctor` exit with code 1. Words in angle brackets stand for values from your machine.

## Why it happens [#why-it-happens]

The gateway token file belongs to another user, usually after a command was run with sudo.

## Fix [#fix]

Run:

```sh
sudo chown "$(id -un)" <file>
```

`turno doctor --fix` does not run it for you, because it needs a decision or an answer from you.

Then run `turno doctor` again to see the row turn into `ok`.

The check lives in [`packages/turno/src/mcpd/health.ts`](https://github.com/wimo-dev/turno/blob/main/packages/turno/src/mcpd/health.ts).