#!/usr/bin/patch -p0
# $Header: /global/src/etc/cl-manage-scripts/patches/RCS/P-passwd-low-ids-systemd-resolve,v 1.2 2020/11/06 12:58:00 pb22 Exp $
# Command to avoid the use of low numbered UIDs
# patch-file matches =  systemd-resolve:x:256
# patch-file distmatches = Ubuntu.[B-F]|Ubuntu.1[8-9]|Ubuntu.2
/bin/bash: :n: command not found
# Also run:
# sudo find /var -xdev -user 101 -exec chown 256 {} \; -ls
# sudo find /var -xdev -user 104 -exec chown 257 {} \; -ls
--- /etc/passwd	2018-03-14 10:49:54.913144260 +0000
+++ /etc/passwd	2018-03-14 12:43:41.371242226 +0000
@@ -20 +20 @@
-systemd-resolve:x:101:103:systemd Resolver,,,:/run/systemd/resolve:/usr/sbin/nologin
+systemd-resolve:x:256:103:systemd Resolver,,,:/run/systemd/resolve:/usr/sbin/nologin
@@ -23 +23 @@
-_apt:x:104:65534::/nonexistent:/usr/sbin/nologin
+_apt:x:257:65534::/nonexistent:/usr/sbin/nologin
