From owner-freebsd-questions@FreeBSD.ORG Sat May 10 12:05:30 2014 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B6132FE8 for ; Sat, 10 May 2014 12:05:30 +0000 (UTC) Received: from mail-ob0-x234.google.com (mail-ob0-x234.google.com [IPv6:2607:f8b0:4003:c01::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 83337799 for ; Sat, 10 May 2014 12:05:30 +0000 (UTC) Received: by mail-ob0-f180.google.com with SMTP id va2so6137010obc.11 for ; Sat, 10 May 2014 05:05:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=1wqCSCxOozHJbI7NEakK7p2yPlSs/7lJbZo/AyDTKKU=; b=moqm4axvuw9a1cAbAzzIGyBT+4z+hKU0c1fQKL6PzlQBskwoCI9d1GQ1U+v8RX7Nfe hzO94Jm+4tEpM47/v1644RXDmrFxZHyg1BrsqgpC7dcCyvnBr4aPXzJmKrn0KsOM5v3Y k+gSCgagT0QPVYXsij9UtscDddFkRD2478rVvBqsOqUPD2ViBmjqCNYOqCSsLRcl947q RfWEqEjHS3NhzDUmcKqg897IB53CzpHW3Xm+xcVUjSjCbB7ne6e+aKqcfZJg8fadn78z JYrx7M9VwwW0k4vG7LjOu3vNeaK/+L5e9PT+Lzipbeifp0nrn2qoiOymJL1EZo1xESNH DsFQ== MIME-Version: 1.0 X-Received: by 10.60.149.233 with SMTP id ud9mr20522894oeb.66.1399723529211; Sat, 10 May 2014 05:05:29 -0700 (PDT) Received: by 10.182.236.133 with HTTP; Sat, 10 May 2014 05:05:29 -0700 (PDT) Date: Sat, 10 May 2014 15:05:29 +0300 Message-ID: Subject: how can I keep users in their directory on ssh From: tethys ocean To: FreeBSD Questions Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 May 2014 12:05:30 -0000 *Hi,* *I want to give a ssh access to my programmers, but I want to keep them in thier own directory. * *I created these users and tried to ssh access and test I saw that all these users can go out upper directory* *I add sone line to sshd.config file like as;* *Allowusers prog1 prog2 prog3 prog4* *ChrootDirectory /perlproggroup* *X11Forwarding no* *AllowTcpForwarding no* *but they still have access to upper directory..* *How can I keep them in their own directory.. we dont want to use sftp etc..* *Should I use ssh-keygen?!?!? OR rssh !??!* *Regards* *-- Share now a pigeon's flight Bluebound along the ancient skies, Its women forever hair and mammal, A Mediterranean town may arise If you rip apart a pigeon's heart. *