Gentoo Archives: gentoo-user

From: Bertram Scharpf <lists@×××××××××××××××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Users in passwd/shadow
Date: Mon, 01 Oct 2007 08:02:15
Message-Id: 20071001074737.GA9312@bart.simpsons.bs.loc
In Reply to: Re: [gentoo-user] Users in passwd/shadow by Dan Farrell
1 Hi,
2
3 Am Sonntag, 30. Sep 2007, 20:15:06 -0500 schrieb Dan Farrell:
4 > On Sun, 30 Sep 2007 04:30:11 +0200
5 > Bertram Scharpf <lists@×××××××××××××××.de> wrote:
6 > > Now I detect there are users in passwd that don't have a
7 > > shadow entry...
8 > that makes sense, because some users aren't allowed to log in. For
9 > example:
10 > | man:x:13:15:man:/usr/share/man:/bin/false
11 > the man user can't log in. the shell is /bin/false.
12
13 I detected it because there is a warning message in case
14 there is _no_ shadow entry. Instantiating an _empty_ shadow
15 entry makes it disappear:
16
17 myhost ~ # su - man
18 su: Authentication service cannot retrieve authentication
19 info.
20 (Ignored)
21 myhost ~ # su - portage
22 su: Authentication service cannot retrieve authentication
23 info.
24 (Ignored)
25 myhost ~ # vi /etc/shadow
26 myhost ~ # grep portage /etc/shadow
27 portage:!:13784:0:99999:7:::
28 myhost ~ # su - portage
29 myhost ~ # echo $?
30 1
31 myhost ~ #
32
33
34 Bertram
35
36
37 --
38 Bertram Scharpf
39 Stuttgart, Deutschland/Germany
40 http://www.bertram-scharpf.de
41 --
42 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Users in passwd/shadow Dan Farrell <dan@×××××××××.cx>