From: | Robert Ullrich <roul76@×××.de> |
---|---|
To: | gentoo-security@l.g.o |
Subject: | Re: [gentoo-security] SOLUTION: Prevent users to login directly |
Date: | Wed, 28 Jul 2004 17:29:14 |
Message-Id: | 20040728181947.6e3b2631@springfield |
1 | Hi list, |
2 | |
3 | after a night and a day of googling and mailing (thanks for your |
4 | patience) I found a solution which satisfies what I thought of: |
5 | |
6 | The first lines of this special user's .profile: |
7 | |
8 | # /emerge/.profile |
9 | if [ "`echo " $(who) "|grep "^\ $(whoami)\ "`" != "" ]; then |
10 | echo "Only login via 'su' permitted." >&2 |
11 | exit 1 |
12 | fi |
13 | |
14 | Thank you all - Rob |
15 | |
16 | -- |
17 | gentoo-security@g.o mailing list |
Subject | Author |
---|---|
Re: [gentoo-security] SOLUTION: Prevent users to login directly | Klaus Wagner <klaus@××××××××××.net> |