From: | Mike Kazantsev <mike_kazantsev@×××××××.net> | ||
---|---|---|---|
To: | gentoo-user@l.g.o | ||
Subject: | Re: [gentoo-user] Disable remote login for certain user | ||
Date: | Sun, 18 Jan 2009 06:13:53 | ||
Message-Id: | 20090118111051.20b3b22c@coercion | ||
In Reply to: | Re: [gentoo-user] Disable remote login for certain user by Grant |
1 | On Sat, 17 Jan 2009 10:50:31 -0800 |
2 | Grant <emailgrant@×××××.com> wrote: |
3 | |
4 | > Can anyone tell me how to find out which users on a system have a |
5 | > login shell (e.g. not /bin/nologin)? |
6 | |
7 | echo 'Unavailable user accounts:'; for usr in `cat /etc/passwd`; do usr=${usr%%:*}; exit | su "$usr" >/dev/null 2>&1 || echo -n "$usr "; done |
8 | |
9 | -- |
10 | Mike Kazantsev // fraggod.net |
File name | MIME type |
---|---|
signature.asc | application/pgp-signature |