Gentoo Archives: gentoo-security

From: Robert Ullrich <roul76@×××.de>
To: gentoo-security@l.g.o
Subject: Re: [gentoo-security] Prevent users to login directly
Date: Wed, 28 Jul 2004 06:56:53
Message-Id: 20040728085248.1ffa717b@springfield
In Reply to: Re: [gentoo-security] Prevent users to login directly by Andrew Ross
1 On Wed, 28 Jul 2004 16:13:36 +1000
2 Andrew Ross <aross@×××××××××××.au> wrote:
3
4 > On Wed, 2004-07-28 at 15:29, Robert Ullrich wrote:
5 > > On Tue, 27 Jul 2004 18:44:26 -0500
6 > > Michael Ihde <ihde@××××.edu> wrote:
7 > >
8 > > > Why not use sudo? Then you can just
9 > > >
10 > > > # sudo <command_to_run>
11 > > >
12 > > > in your case
13 > > >
14 > > > # sudo emerge system
15 > > >
16 > >
17 > > The regular user (like "rob") has to be in the group "portage" to emerge things. But I
18 > > won't put any user in that group. The user-account "emerge" is for administrating the
19 > > local software so any admin who knows about that account should be able to emerge.
20 > > But I don't want that admin to login anonymously with "emerge". He should be named
21 > > first and then (only) su-ing to "emerge" instead.
22 > >
23 > > > If you don't want to run emerge as root, then you can change the sudoers
24 > > > file to have it run under your "emerge" user. Finally, to disable
25 > > > logins put an asterix in the second field of the shadow file for the
26 > > > emerge user. Then no one can login as there is no password and only
27 > > > root can su to the "emerge" user.
28 > >
29 > > Not everybody knows the root-password ;-)
30 >
31 > That's the point of sudo - they don't _need_ to know the root password.
32 > Users x, y and z can all run emerge using their own password, which is a
33 > (default) option in sudoers.
34
35 I know that. If it is that easy, I wouldn't post here.
36 The point is: I won't let every user emerge. Only "root" and "emerge" should be allowed
37 to do so. For that reason I created that account which every admin knows (instead of
38 the root-password). So he could emerge without becoming root.
39 But I want him to be identified before emerging. So he _must_ login as himself first and
40 su - emerge after.
41
42 regards - Rob
43
44 --
45 gentoo-security@g.o mailing list

Replies

Subject Author
Re: [gentoo-security] Prevent users to login directly Christian Schwede <cschwede@×××××××××××.de>
Re: [gentoo-security] Prevent users to login directly Volkov Peter Aleksandrovich <pvolkov@××××××××.su>