Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 193541

Summary: games.eclass creates games user with passwordless login
Product: Gentoo Security Reporter: Jakub Moc (RETIRED) <jakub>
Component: VulnerabilitiesAssignee: Gentoo Security <security>
Status: RESOLVED INVALID    
Severity: normal CC: games
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 195033    

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. :)