From owner-freebsd-questions@FreeBSD.ORG Mon Oct 5 13:57:53 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 C59DB106568F for ; Mon, 5 Oct 2009 13:57:53 +0000 (UTC) (envelope-from apseudoutopia@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 556558FC23 for ; Mon, 5 Oct 2009 13:57:52 +0000 (UTC) Received: by bwz27 with SMTP id 27so2310782bwz.43 for ; Mon, 05 Oct 2009 06:57:52 -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 :from:date:message-id:subject:to:content-type; bh=x3rCR9d0fETfOyjCm9UWMOrlSCT1Xl6FQFNj8STQw+o=; b=b5WEQgcJYhiUYcLawokBG6+lyqlfYhwOuKyInsiT43ATpVN6FOaUYEO/sI40hGOdnS +MscNq1r2pe3RjFZwXbFUp6Pj67QxztKMDCng31Qvns1UmyB3Z+TWK/NNTod6td049kX w/Rwi/tYotqM9Bt16+s7dnjDzhZs8CGZB60Wo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=LVZIAlKRcYMbPCmkV9yXzCdSL4YYmHSJqUhic7PpDhUpC8+u8RCMiZY4g++NzAGILW G7ylre672sOL8T9s7HOsHWNHDi19+iETksextfkZFEvDT805EDo7bwedCts2ZTH/4aYV U254hqNkRi5SokCLbUoWPYCj/WwCKlF670TXE= MIME-Version: 1.0 Received: by 10.204.24.70 with SMTP id u6mr4055999bkb.70.1254751070328; Mon, 05 Oct 2009 06:57:50 -0700 (PDT) In-Reply-To: <27ade5280910050108w212a8d85h6071b5211f19425f@mail.gmail.com> References: <27ade5280910050108w212a8d85h6071b5211f19425f@mail.gmail.com> From: APseudoUtopia Date: Mon, 5 Oct 2009 09:57:30 -0400 Message-ID: <27ade5280910050657g5130bedftf1b6d313cef2827e@mail.gmail.com> To: FreeBSD Questions Content-Type: text/plain; charset=UTF-8 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:57:53 -0000 On Mon, Oct 5, 2009 at 4:08 AM, APseudoUtopia wrote: > Hey list, > > I'm setting up jails on my system. I started with a httpd jail for > nginx and php to run in. I used ezjail to create it. I went through > all the steps, and got a jail setup and working. I've logged in and > out several times and installed a couple ports within the jail. I then > added a non-privileged user by running "adduser" as root. However, > that is when the problem came up. For some reason, I cannot switch to > the unprivileged user. The shell is giving me a "Permission Denied" > error. > [snip] I have solved the problem with the help of Google and this thread: https://elektropost.org/ezjail/threads.html#00263 The permissions on the HOST for /usr/jails/httpd and /usr/jails/basejail were set incorrectly. When I installed the jail, I used umask 0077. Those jail directories needed to be chmod'ed 755. Everything works successfully now. Thanks very much for the tips, suggestions, and overall help. If I hadn't found that ezjail mailing list thread, I would've been ripping my hair out for days.