Answer the question
In order to leave comments, you need to log in
How is user auditing done on Linux?
Is there any list of regular users (system and those needed for services and programs)
for web servers and so on.
I need to somehow delete all users that are not needed but leave the system ones (on different systems they are called differently and with different uids)
How did you usually do it before with such tasks?
Answer the question
In order to leave comments, you need to log in
System users have uid less than a certain number. In Linux it is 500, in my opinion, in FreeBSD it is 1000. All users with uid below this number are system or daemons, above are normal users (although daemons can also create a user with uid above the limit).
First, by searching for files owned by the user:
find / -user some_user
I need to somehow delete all users that are not needed
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question