From owner-freebsd-questions@FreeBSD.ORG Thu Jun 1 08:42:08 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C401A16A6D4 for ; Thu, 1 Jun 2006 08:42:08 +0000 (UTC) (envelope-from gandalf@messias.qhigh.com) Received: from smtp.enternet.hu (smtp.enternet.hu [62.112.192.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E79B43D45 for ; Thu, 1 Jun 2006 08:42:08 +0000 (GMT) (envelope-from gandalf@messias.qhigh.com) Received: from [83.216.40.218] (helo=[172.16.0.43]) by smtp.enternet.hu with esmtpa (Exim 4) id 1Flikn-000KfB-0y for freebsd-questions@freebsd.org; Thu, 01 Jun 2006 10:42:05 +0200 Message-ID: <447EA884.8010602@messias.qhigh.com> Date: Thu, 01 Jun 2006 10:42:44 +0200 From: User Gandalf User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Subject: scponlyc on 6.1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jun 2006 08:42:13 -0000 Hello, I have installed scponlyc with the chroot option: #cd /usr/ports #cd shells/scponly/ #make -DWITH_SCPONLY_CHROOT I have used scponly on Linux before, so I knew that there is a special makefile inside. #cd work/scponly-4.4/ #make jail I have created a new chrooted, scp only user. Here are the files that were created by 'make jail': ./bin: echo pwd ./etc: pwd.db ./lib: libc.so.6 libcrypt.so.3 libcrypto.so.4 libmd.so.3 libz.so.3 ./libexec: ld-elf.so.1 ./public_html: ./usr: bin lib libexec ./usr/bin: groups id ./usr/lib: libasn1.so.8 libcom_err.so.3 libgssapi.so.8 libkrb5.so.8 libroken.so.8 libssh.so.3 ./usr/libexec: ld-elf.so.1 sftp-server Now if I try to do 'su -l scpuser' then I do not get any error messages but nothing happens. If I try to login with WinSCP, it tells me that my shell is incompatible with bash. Is this a problem with the port? What am I doing wrong? What logfiles should I check? (/var/log/messages tell nothing...) Thanks, Laszlo