From a2c999a1ccedc59679fdae77b1f51483f815a282 Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Sat, 25 Jun 2022 15:59:51 -0500 Subject: [PATCH] Remove setid script --- README.md | 3 --- setid | 15 --------------- 2 files changed, 18 deletions(-) delete mode 100755 setid diff --git a/README.md b/README.md index c59146e..5676680 100644 --- a/README.md +++ b/README.md @@ -17,9 +17,6 @@ Upgrades the system, all AUR packages, and Nextcloud. ### backup Creates an incremental system backup using `bup`. -### setid -Sets up the `/etc/subuid` and `/etc/subgid` files for [rootless Podman](https://wiki.archlinux.org/title/Podman#Set_subuid_and_subgid). - ### synapse-rm A command-line wrapper around [synadm](https://github.com/JOJ0/synadm) to quickly delete multiple Matrix rooms. diff --git a/setid b/setid deleted file mode 100755 index bca8d40..0000000 --- a/setid +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/python - -# Set up rootless Podman -# https://wiki.archlinux.org/title/Podman#Set_subuid_and_subgid -ids = '' -for uid in range(1000, 2000): - start = uid * 10**5 - num = 65536 # Allocate 65536 UIDs - ids += str(uid) + ':' + str(start) + ':' + str(num) + '\n' - -# Save to system files -with open('/etc/subuid', 'w') as f: - f.write(ids) -with open('/etc/subgid', 'w') as f: - f.write(ids)