From: Dan Farrell <dan@spore.ath.cx>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Users in passwd/shadow
Date: Sun, 30 Sep 2007 20:15:06 -0500 [thread overview]
Message-ID: <20070930201506.7c6ad6d5@pascal.spore.ath.cx> (raw)
In-Reply-To: <20070930023011.GA17059@bart.simpsons.bs.loc>
On Sun, 30 Sep 2007 04:30:11 +0200
Bertram Scharpf <lists@bertram-scharpf.de> wrote:
> Hi,
>
>
> I'm fetching the users from the files '/etc/passwd' and
> '/etc/shadow'. (I use a simple Ruby script.)
>
> def users fn ; File.open fn do |f| f.map { |l| l[ /^[^:]*/] } end ;
> end
>
> pw = users "/etc/passwd"
> sh = users "/etc/shadow"
>
> Now I detect there are users in passwd that don't have a
> shadow entry...
that makes sense, because some users aren't allowed to log in. For
example:
| man:x:13:15:man:/usr/share/man:/bin/false
the man user can't log in. the shell is /bin/false.
> and even shadowed users that don't appear in
> passwd:
>
> > pw - sh
> => ["man", "smmsp", "portage", "cvs"]
> > sh - pw
> => ["games", "guest", "cvsd"]
now that I can't explain. But I have games and guest myself, although
I don't use CVS. So my guess is it's not a bug and you've not been
hacked.
> Does this have any meaning or is it a bug?
>
> Bertram
>
>
--
gentoo-user@gentoo.org mailing list
next prev parent reply other threads:[~2007-10-01 1:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-30 2:30 [gentoo-user] Users in passwd/shadow Bertram Scharpf
2007-10-01 1:15 ` Dan Farrell [this message]
2007-10-01 7:47 ` Bertram Scharpf
2007-10-01 21:37 ` Dan Farrell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070930201506.7c6ad6d5@pascal.spore.ath.cx \
--to=dan@spore.ath.cx \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox