You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,18 @@ For this tool to work, users must use the same username as their GitHub username
13
13
14
14
The tool will attempt to build a cache of SSH key fingerprints at `/var/keys` by default; to change this, use the `--keys-dir` option.
15
15
16
+
## Overriding local usernames and usage for system accounts
17
+
18
+
In the event that you want to use this tool with local usernames that you do not control (such as the `root` user on a single-user system like OpenWRT) you can use the `--overrides-file` argument to explicitly map UIDs to GitHub usernames.
19
+
A simple example is given here:
20
+
```
21
+
# Allow users `keno` and `staticfloat` to login as `root`
22
+
0: keno staticfloat
23
+
```
24
+
A more complete example overrides file with comments is [given in `example.overrides`](./example.overrides).
25
+
Note that overrides files must be owned by the user that the command is being run by (usually `root`) and cannot be writable by any other user or group.
26
+
In order to actually login as `root` (or any system user account with a UID <1000) you must explicitly whitelist the account by passing `--allow-system-uid=xxx` to the command.
27
+
16
28
## Usage Warning
17
29
18
30
Although we have taken some pains to test this in exceptional circumstances (such as disk space exhaustion, read-only filesystems, etc...) it is possible there remain serious bugs that can lock you out of your server.
0 commit comments