Re: list all system users, eg. _x11

2017-05-09 Thread Luke Small
Well, actually I like to play with firewall configurations and I set up unbound and dnscrypt-proxy and I wanted to limit the users that are able to receive dns requests on localhost port 53. I was trying to figure out what user was listening. I haven't tried it yet, but I figure it is _dhcp and _un

Re: list all system users, eg. _x11

2017-05-09 Thread andrew fabbro
Listing all users is trivial - I don't think that's what he's asking. He's asking is "how do I list all *system* users", presumably in a way that differentiates them from user accounts in some kind of authoritative way. I don't think there is a way. You could: - Assume all users < uid 1000 are

Re: list all system users, eg. _x11

2017-05-08 Thread Marcus MERIGHI
and...@msu.edu (STeve Andre'), 2017.05.06 (Sat) 20:37 (CEST): > On 05/06/17 14:27, Luke Small wrote: > > Is there a way to determine all users on a system that the users command > > doesn't seem to show? like _x11 and _ntpd users(1) - list current users I'd try ps(1) and get all active users fro

Re: list all system users, eg. _x11

2017-05-06 Thread STeve Andre'
On 05/06/17 14:27, Luke Small wrote: Is there a way to determine all users on a system that the users command doesn't seem to show? like _x11 and _ntpd What's a user? Maybe you want to look at /etc/passwd. The first four lines are root:*:0:0:Charlie &:/root:/bin/ksh daemon:*:1:1:The devil

Re: list all system users, eg. _x11

2017-05-06 Thread Solène Rapenne
Le 2017-05-06 20:27, Luke Small a écrit : Is there a way to determine all users on a system that the users command doesn't seem to show? like _x11 and _ntpd hello system users has an uid < 1000 you can retrieve them like by parsing /etc/passwd like this awk -F ':' '{ if($2 < 1000) { print $