We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8a65551 + 811ed73 commit bd9ee5eCopy full SHA for bd9ee5e
src/zenlib/namespace/namespace.py
@@ -11,6 +11,9 @@ def get_id_map(username=None, id_type="uid"):
11
if id_type not in ("uid", "gid"):
12
raise ValueError("id_type must be 'uid' or 'gid'")
13
14
+ if getuid() == 0:
15
+ return 100000, 65536 # Not usre about this, unshare --map-auto --map-root seems to do this if run as root
16
+
17
with open(f"/etc/sub{id_type}") as f:
18
for line in f:
19
if line.startswith(f"{username}:"):
0 commit comments