Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 193541 - games.eclass creates games user with passwordless login
Summary: games.eclass creates games user with passwordless login
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Security
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 195033
  Show dependency tree
 
Reported: 2007-09-23 16:26 UTC by Jakub Moc (RETIRED)
Modified: 2007-09-24 18:33 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jakub Moc (RETIRED) gentoo-dev 2007-09-23 16:26:31 UTC
Same issue like Bug 189412. Why does this need /bin/bash as shell?
Comment 1 SpanKY gentoo-dev 2007-09-24 10:34:14 UTC
games.eclass uses enewuser() which uses `adduser` which by default, disables the account ... i dont know why you think you can login as games w/out a password since it clearly does not work

a quick test over here shows correct behavior:
# grep games /etc/shadow
games:!:13780:0:99999:7:::
(where '!' obviously means the account is locked out)

it needs /bin/bash as a shell in order to run shell script daemons properly
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-09-24 11:05:16 UTC
Well, unfortunately this is what I had here: 

# grep games /etc/shadow
games::13230:0:99999:7:::

The install on this box might be from 1.4 times or so. Needless to add, the games.eclass forcing /bin/bash totally doesn't help, and the only reference to an ebuild that requires bash (that I could find in the eclass) is some games server that should use s-s-d plus chuid instead.
Comment 3 SpanKY gentoo-dev 2007-09-24 12:14:57 UTC
easy enough to add a warning to shadow's pkg_postinst() that scans /etc/shadow for users with blank passwords ...
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2007-09-24 18:33:05 UTC
(In reply to comment #3)
> easy enough to add a warning to shadow's pkg_postinst() that scans /etc/shadow
> for users with blank passwords ...

Well, that sounds a lot better than the current situation. :)