OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Alexander S. Volchenkov (volaxuh.ru)
Date: Tue Nov 06 2001 - 01:21:40 CST

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    Hello, Peter!

    > >
    > > I've just installed ssh2 and trying to implement it's chroot feature.
    > > I have a problem with user login.
    > >
    > > User "dummy" is in the "chrooted" group. His home directory :
    > > /home/chrooted/dummy contains bin subdirectory with a mirror of /bin.
    > > User's shell is /bin/sh. Command: chroot /home/chrooted/dummy works fine.
    > >
    > > From /etc/sshd2_conf:
    > > -------------------------------------------
    > > AllowGroups chrooted
    > > ChRootGroups chrooted
    > > -------------------------------------------

    -------------- SKIP -----------------

    > On the server, stop any sshd's running, then run an 'sshd -d' and
    > watch its output.

    The output of sshd2 -d1:

            gate# ssh2 -l dummy gate
            dummygate's password: <password>
            Authentication successful.
            sshd2[1296]: /etc/spwd.db: No such file or directory
            debug: ssh_user_become: getpwnam: Bad file descriptor
            debug: Switching to user 'dummy' failed!
            Connection to gate closed.

    Does it mean i must provide /etc/spwd.db file in the user home directory?
    In this case, how can I create this file for single user usage?

    Thanks, Alexander S. Volchenkov (mailto:volaxuh.ru)

    To Unsubscribe: send mail to majordomoFreeBSD.org
    with "unsubscribe freebsd-security" in the body of the message