UPDATE:
So far no one has been able to answer the question, the responses i have gotten were what i predicted which i asked people not to reply with. When i ask them to provide support (proof) of their answer... crickets. And then i get down voted for it? Seriously? Any of you down votes care to explain why you down voted?
Before one more person tells me ALL users installed by the distro are REQUIRED please explain which services or features will break or error for removing any of the following users: adm
games
operator
?
I want to know how to determine which users and groups can be safely removed. Is it as simple as if there are no processes running as them and no filed owned by them?
I am using CentOS8. Is there an official documentation on each user / group out of the box, what they are for and which ones are just there for the heck of it vs having a purpose?
I found one Redhat article that listed "Optional Users". I assumed that meant not required and they could be removed. One of them was user nobody
. Sadly, after removing it i discovered it was actually needed by the kernel and i had to put it back. So much for optional.
There are many groups that do not have any users assigned to them out of the box like sys
mem
kmem
wheel
man
. Can those simply be removed?
Some groups like disk
tape
floppy
video
cdrom
are for giving a user access to hardware. If i never plan on assigning a user to any of those groups can i remove them or are they tied to hardware and would break things if removed?
I also found some groups like utmp
utempter
ssh_keys
slocate
postdrop
that do not have any users but have files with those group's ownership. How is that possible for a file to be given a group that no user can use?
I have read as much as i could find online about this topic and the number one answer I've seen given is, don't worry about them and leave them alone. That is not an answer to what im asking. Im not asking people's opinions if i should remove a user or group that the system wont miss. Im asking to learn how to determine which users and groups are in use and which ones can be removed without breaking anything.
games
andftp
are necessary to the system working. What services (out of the box) would fail by removing these two users? What error in what log would manifest by removing these two users? If the answer is none then your statement "they are necessary" is false. – Private_Citizen Apr 11 '20 at 20:19