Skip to Content.
Sympa Menu

sm-discuss - [SM-Discuss] Re: [Bug 2129] openssh should create ssh user

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Casey Harkins <charkins AT upl.cs.wisc.edu>
  • To: sm-discuss AT lists.ibiblio.org
  • Cc: charkins AT pobox.com
  • Subject: [SM-Discuss] Re: [Bug 2129] openssh should create ssh user
  • Date: Thu, 23 Jan 2003 12:39:11 -0600 (CST)

Thought I'd get some input from everyone on how to handle this bug. The
problem is with the create_user function in the openssh spell. The spell
attempts to create the user/group sshd, it checks the
/etc/sorcery/accounts file and determines that the user sshd should have
id=111 and group=65534. The /etc/sorcery/groups file does not list an sshd
group. The create_user function first tries to create a group called sshd
with id=65534 (why does it do this?), this fails because the group
'nogroup' already exists with this id. Then it tries to create the user
sshd with group='sshd', since creating the group failed, creating the user
using the group name also fails.

I'm not exactly sure how this is suppose to function. Should sorcery be
creating the group if there is no entry in /etc/sorcery/groups? If so,
then does it always assume the groupname=username? If sorcery shouldn't
create the group, then the create_user function should use the numeric
group id specified in /etc/sorcery/accounts rather than the user name for
the group. I'm guessing the ideal solution is to just add an sshd group to
/etc/sorcery/groups (the group id number will also need to be changed in
/etc/sorcery/accounts).

For more info:
http://bugs.sourcemage.org/show_bug.cgi?id=2129


-casey






Archive powered by MHonArc 2.6.24.

Top of Page