V
V
Vi2016-05-25 21:02:16
linux
Vi, 2016-05-25 21:02:16

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

4 answer(s)
C
CityCat4, 2016-05-25
@CityCat4

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).

V
Vladimir Kuts, 2016-05-25
@fox_12

First, by searching for files owned by the user:
find / -user some_user

V
vvs-ts9, 2016-05-25
@vvs-ts9

cat /etc/passwd | sed 's/\:.*//'

Y
Yuri Chudnovsky, 2016-05-26
@Frankenstine

I need to somehow delete all users that are not needed

If you have a "not needed" criterion, what prevents you from using it?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question