Date: Tue, 6 Nov 2001 10:21:40 +0300 From: "Alexander S. Volchenkov" <volax@uh.ru> To: Peter Pentchev <roam@ringlet.net> Cc: freebsd-security@FreeBSD.ORG Subject: Re: Chrooted SSH2 problem Message-ID: <200111060717.fA67HZu81881@ns.uh.ru> In-Reply-To: <20011105174639.C77919@straylight.oblivion.bg> References: <200111051546.fA5FkLu62095@ns.uh.ru> <20011105174639.C77919@straylight.oblivion.bg>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200111060717.fA67HZu81881>