From owner-freebsd-questions@FreeBSD.ORG Mon Oct 5 13:33:56 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2833B1065672 for ; Mon, 5 Oct 2009 13:33:56 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: from mail-bw0-f227.google.com (mail-bw0-f227.google.com [209.85.218.227]) by mx1.freebsd.org (Postfix) with ESMTP id A73A18FC1C for ; Mon, 5 Oct 2009 13:33:55 +0000 (UTC) Received: by bwz27 with SMTP id 27so2293514bwz.43 for ; Mon, 05 Oct 2009 06:33:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=P/PmOS30qhX7wFnwLzY7igzhdVj9mFoZZ3VUWZT/td0=; b=lSzt+k4iXF7J+N6k388C0AqCzbfzoxt/3u5FqMuHaA8oYrYFztukO2YyJlx1Xxznxj DrOuH4kYKKhNpuqsmmqVd1qCKkjpttY8eGI5PWd4Dci9HWb+Ct7PLBBqKtYGxneuzUbL yEIYJO69fDih2RJEEeIId0ehu6AqYSUsNGlgM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=ag3GzunwoB7LRibCgbMQTKDbwl20SZWm32V5COYrdgDDc19ISix5qSz39Kk+6GAC33 hUWdx9NUuP2BsmTGZ0ym/cTQSAdcECeJo/uynEQ+HVBcC5aGm6orKTjd0PbLac9RZ6EG OUh4LHi+QK17JkyA336cy36Cye7OQlRJnCrnU= MIME-Version: 1.0 Received: by 10.223.17.144 with SMTP id s16mr12347faa.41.1254749634663; Mon, 05 Oct 2009 06:33:54 -0700 (PDT) In-Reply-To: <27ade5280910050630r47a34e5bteea1df81b44e0457@mail.gmail.com> References: <27ade5280910050108w212a8d85h6071b5211f19425f@mail.gmail.com> <200910050951.n959pkRA059227@lurza.secnetix.de> <27ade5280910050619v6bd48173sb5099ba79c5ca1d3@mail.gmail.com> <27ade5280910050624w366d05f1yf9db6158db626ba3@mail.gmail.com> <4ad871310910050628v642e4fd9wf6f8a983559b67bc@mail.gmail.com> <27ade5280910050630r47a34e5bteea1df81b44e0457@mail.gmail.com> Date: Mon, 5 Oct 2009 13:33:54 +0000 Message-ID: <4ad871310910050633n16bd69c1oa523add59b3468c3@mail.gmail.com> From: Glen Barber To: APseudoUtopia Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-questions@freebsd.org Subject: Re: Jails: /bin/tcsh: Permission Denied 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: Mon, 05 Oct 2009 13:33:56 -0000 On Mon, Oct 5, 2009 at 1:30 PM, APseudoUtopia wrote: > On Mon, Oct 5, 2009 at 9:28 AM, Glen Barber wrote: >> On Mon, Oct 5, 2009 at 1:24 PM, APseudoUtopia wrote: >> >> [snip] >> >>> >>> Sorry to reply again, but I have some further information. >>> >>> I used chpass to change the shell of the jailuser account. I tried >>> /bin/sh, /bin/csh, /bin/tcsh, and /sbin/nologin. All of those gave the >>> same "Permission denied" error. Even nologin gave "Permission denied" >>> instead of "This account is currently not available." >> >> What happens with /bin/false ? >> >> -- >> Glen Barber >> > > Same thing: > > jailuser:*:1001:1001:User &:/home/jailuser:/bin/false > > # su jailuser > su: /bin/false: Permission denied > Have you created another user to test? FWIW, I was wrong about the location of 'false' - it is /usr/bin/false, not /bin/false - you should have received 'command not found'. -- Glen Barber