1 |
On Thu, 14 Apr 2016 10:14:14 +0200, J. Roeleveld wrote: |
2 |
|
3 |
> > cat /etc/passwd ;-) |
4 |
> > |
5 |
> > Or if you want to get clever and give just a list of usernames |
6 |
> > |
7 |
> > awk -F: '{print $1}' /etc/passwd |
8 |
> |
9 |
> This doesn't work when using LDAP authentication or similar: |
10 |
> |
11 |
> nas ~ # cat /etc/passwd | grep joost |
12 |
> nas ~ # getent passwd | grep joost |
13 |
> joost:x:1000:1000:System User:/home/joost:/bin/bash |
14 |
> nas ~ # |
15 |
|
16 |
I know, but for Dale's purposes I knew it would be fine... and I didn't |
17 |
need to double-check the use of cat :) |
18 |
|
19 |
|
20 |
-- |
21 |
Neil Bothwick |
22 |
|
23 |
Master of all I survey (at the moment, empty pizza boxes) |