59 lines
1.5 KiB
Diff
59 lines
1.5 KiB
Diff
|
|
From 3221c8c3231de69b5e2db400f3b7bcaf6a918bb3 Mon Sep 17 00:00:00 2001
|
||
|
|
From: hongjinghao <hongjinghao@huawei.com>
|
||
|
|
Date: Sat, 11 May 2024 14:55:47 +0800
|
||
|
|
Subject: [PATCH] Delete the users and groups declared in systemd.
|
||
|
|
These users/groups have already been declared in systemd basic.conf, if we also declare them here, systemd-sysusers will report warnings.
|
||
|
|
https://gitee.com/src-openeuler/setup/pulls/30/
|
||
|
|
|
||
|
|
---
|
||
|
|
sysusers.d/20-setup-groups.conf | 14 --------------
|
||
|
|
sysusers.d/20-setup-users.conf | 2 --
|
||
|
|
2 files changed, 16 deletions(-)
|
||
|
|
|
||
|
|
diff --git a/sysusers.d/20-setup-groups.conf b/sysusers.d/20-setup-groups.conf
|
||
|
|
index d69ff91..867f107 100644
|
||
|
|
--- a/sysusers.d/20-setup-groups.conf
|
||
|
|
+++ b/sysusers.d/20-setup-groups.conf
|
||
|
|
@@ -1,24 +1,10 @@
|
||
|
|
-g root 0
|
||
|
|
g bin 1
|
||
|
|
g daemon 2
|
||
|
|
g sys 3
|
||
|
|
-g adm 4
|
||
|
|
-g tty 5
|
||
|
|
-g disk 6
|
||
|
|
-g lp 7
|
||
|
|
g mem 8
|
||
|
|
-g kmem 9
|
||
|
|
-g wheel 10
|
||
|
|
-g cdrom 11
|
||
|
|
g mail 12
|
||
|
|
g man 15
|
||
|
|
-g dialout 18
|
||
|
|
g floppy 19
|
||
|
|
g games 20
|
||
|
|
-g tape 33
|
||
|
|
-g video 39
|
||
|
|
g ftp 50
|
||
|
|
g lock 54
|
||
|
|
-g audio 63
|
||
|
|
-g users 100
|
||
|
|
-g nobody 65534
|
||
|
|
diff --git a/sysusers.d/20-setup-users.conf b/sysusers.d/20-setup-users.conf
|
||
|
|
index bea0ab3..7d197c4 100644
|
||
|
|
--- a/sysusers.d/20-setup-users.conf
|
||
|
|
+++ b/sysusers.d/20-setup-users.conf
|
||
|
|
@@ -1,4 +1,3 @@
|
||
|
|
-u root 0:0 "Super User" /root /bin/bash
|
||
|
|
u bin 1:1 "bin" /bin -
|
||
|
|
u daemon 2:2 "daemon" /sbin -
|
||
|
|
u adm 3:4 "adm" /var/adm -
|
||
|
|
@@ -10,4 +9,3 @@ u mail 8:12 "mail" /var/spool/mail -
|
||
|
|
u operator 11:0 "operator" /root -
|
||
|
|
u games 12:100 "games" /usr/games -
|
||
|
|
u ftp 14:50 "FTP User" /var/ftp -
|
||
|
|
-u nobody 65534:65534 "Kernel Overflow User" - -
|
||
|
|
--
|
||
|
|
2.33.0
|
||
|
|
|