On Sun, 30 Sep 2007 04:30:11 +0200
Bertram Scharpf <[EMAIL PROTECTED]> 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
> 
> 
-- 
[EMAIL PROTECTED] mailing list

Reply via email to