Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 7697 - /etc/passwd missing sshd user for 1.4 stage3
Summary: /etc/passwd missing sshd user for 1.4 stage3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-09 13:07 UTC by Mark Guertin
Modified: 2003-01-28 00:30 UTC (History)
2 users (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 Mark Guertin 2002-09-09 13:07:48 UTC
Hi All

The default /etc/passwd file is missing the sshd user, I added this and all
seems fine so far:

sshd:x:22:90:sshd:/var/empty:/dev/null
Comment 1 SpanKY gentoo-dev 2002-09-09 13:41:39 UTC
the openssh ebuild should take care of this ...

pkg_preinst() {
        userdel sshd 2> /dev/null
        if ! groupmod sshd; then
                groupadd -g 90 sshd 2> /dev/null || \
                        die "Failed to create sshd group"
        fi
        useradd -u 22 -g sshd -s /dev/null -d /var/empty -c "sshd" sshd || \
                die "Failed to create sshd user"
}
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2002-09-11 13:22:49 UTC
------------------------cut--------------------------
azarah@nosferatu rc-scripts $ grep ssh etc/passwd 
sshd:x:22:22:sshd:/dev/null:/bin/false
azarah@nosferatu rc-scripts $ grep ssh etc/group  
sshd::22:
azarah@nosferatu rc-scripts $ 
-----------------------------------------------------

This is from gentoo-src, and I havent touched it in a while.  What version
baselayout did come with that stage3 ?
Comment 3 Mark Guertin 2002-09-11 17:52:10 UTC
Hmm I am suspecting that the stage1 for 1.4_rc1 of sparc stuffs might have 
been built from an older tree (?) 
 
i used a stage3 install for this so everything was 'supplied', I'll add murhpy 
to the cc on this bug as well