From owner-freebsd-questions@FreeBSD.ORG Mon Oct 5 08:08:47 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 A7424106568D for ; Mon, 5 Oct 2009 08:08:47 +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 3AD638FC17 for ; Mon, 5 Oct 2009 08:08:46 +0000 (UTC) Received: by bwz27 with SMTP id 27so2119426bwz.43 for ; Mon, 05 Oct 2009 01:08:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:message-id :subject:to:content-type; bh=7ky403Q2GMZPOK8LY8DJ103tGVfer/ACbYEHSkreLU8=; b=dCOnKRuA8S7UhTdohHK1dQrjL1m25kN62DGAtVMuzAvrSWx/kKgUes2tE1r9etFnx6 xYFa7saqrcTPKt0+zVICqcPXt50TEGggQykOMMlA+2gY0dSAVRZzsA0g/b6S1yvCfD0M /VPTuu0ynSRvWrKhQmXI1y1b/TlSes2O4RoGk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=BrW87dNy4bQrjkc5boj2TbBNEq+4fHhvk8m6jK12NS8Lxn0N1ZcXoO6F6/Xm1wwUxj HTxQoy+d/X3Q/J9SyvCQLHHSTg33mpD+zWniRkqxGOCWcYKBdXj2SWc182d6xdfSRY/A 1z02pPuP8/nKY7TNrUs4qqJBonleNKzpSHxLs= MIME-Version: 1.0 Received: by 10.204.8.13 with SMTP id f13mr3671159bkf.150.1254730126119; Mon, 05 Oct 2009 01:08:46 -0700 (PDT) From: APseudoUtopia Date: Mon, 5 Oct 2009 04:08:26 -0400 Message-ID: <27ade5280910050108w212a8d85h6071b5211f19425f@mail.gmail.com> To: FreeBSD Questions Content-Type: text/plain; charset=UTF-8 Subject: 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 08:08:47 -0000 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. # su - jailuser su: no directory # su jailuser su: /bin/tcsh: Permission denied The line in /etc/passwd of the jail: jailuser:*:1001:1001:User &:/home/jailuser:/bin/tcsh The host and jail are running 7.2-RELEASE-p4. /bin/tcsh is listed in /etc/shells. I tried running "pwd_mkdb /etc/master.passwd" to no avail. Any ideas on why I am getting a permission denied error? More info, if needed: Mount on the host system: /dev/ad2s1a on / (ufs, local, noatime) devfs on /dev (devfs, local) /dev/ufs/tmp on /tmp (ufs, local, noatime, soft-updates) /dev/ad2s1f on /usr (ufs, local, noatime, soft-updates) /dev/ad2s1e on /var (ufs, local, noatime, soft-updates) /usr/jails/basejail on /usr/jails/httpd/basejail (nullfs, local, read-only) devfs on /usr/jails/httpd/dev (devfs, local) Mount on the jail: /dev/ad2s1f on / (ufs, local, noatime, soft-updates) /etc/fstab.httpd on host: /usr/jails/basejail /usr/jails/httpd/basejail nullfs ro 0 0 # ls -al /usr/jails/ drwx------ 9 root wheel 512 Oct 5 05:34 basejail drwx------ 3 root wheel 512 Oct 5 05:34 flavours drwx------ 12 root wheel 512 Oct 5 07:49 httpd drwxr-xr-x 12 root wheel 512 Oct 5 05:34 newjail Thanks.