|
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 (volax
uh.ru)Date: Tue Nov 06 2001 - 01:21:40 CST
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
dummy
gate'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:volax
uh.ru)
To Unsubscribe: send mail to majordomo
FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]