From owner-freebsd-questions@FreeBSD.ORG Tue Apr 21 22:10:36 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CCD5F9F1 for ; Tue, 21 Apr 2015 22:10:36 +0000 (UTC) Received: from mail-qg0-x22b.google.com (mail-qg0-x22b.google.com [IPv6:2607:f8b0:400d:c04::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8507613A2 for ; Tue, 21 Apr 2015 22:10:36 +0000 (UTC) Received: by qgej70 with SMTP id j70so75181665qge.2 for ; Tue, 21 Apr 2015 15:10:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=V0CJ6g5ESMovb6GBbaz+aAlTxtahryO5iEVTBm3fvY4=; b=uvqY1oAQypetxe2MuCzNiy0JYxNhtOXSH7xf6LxbHm2CL6cyB4mrvyvappM3WOLxkE h2S/1P7YO/SG+U3C6rJ4pHOok37ElnAGIP8qXZfXo0VikR0y9KgPtnl4M2Ic4gQIfN3H gPiYsYgplJvXU9iLnQrzdaXLH5y6XyA/VNqUUf2Vq4OtJtIsInuvAHgRuEx8uGCqpPLT kYWJtSIwh54S3HhljaJWaCcVKgPWudZp73thK8P1efwtvMzsdDjpuYvV5hmvD1+ShE2l glgq9TNLgiu7M4BxSBiznSvb/tkZ4iRmPdEEkk7APQcNFKHSlVl6O7zINpps3AARL8w5 1rkg== X-Received: by 10.140.151.15 with SMTP id 15mr26189202qhx.104.1429654235657; Tue, 21 Apr 2015 15:10:35 -0700 (PDT) Received: from localhost.localdomain ([209.181.150.218]) by mx.google.com with ESMTPSA id h65sm2305079qge.38.2015.04.21.15.10.34 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Apr 2015 15:10:34 -0700 (PDT) Message-ID: <5536CAD9.8090607@gmail.com> Date: Tue, 21 Apr 2015 16:10:33 -0600 From: jd1008 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: FreeBSD Users Subject: Re: chroot question References: In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Apr 2015 22:10:36 -0000 On 04/21/2015 03:57 PM, Chris Petrik wrote: > Try to reread the chroot manpage. > > > Enviado desde mi Samsung Mobile de Telcel > > > -------- Original message -------- > From: jd1008 > Date:21/04/2015 4:34 PM (GMT-06:00) > To: FreeBSD Users > Cc: Fedora Community Users Support > Subject: chroot question > > > As root, I ran > > chroot --userspec=user2:user2 /home/user2 > chroot: failed to run command ‘/bin/bash’: Permission denied > > The dir /home/user2 has in it > all the *bin and *lib (links) and usr/*bin and usr/*lib files and > subdirs. > > So, what is chroot good for??? > _______________________________________________ Why don't YOU read the manual as I have read it fully (it is very short) (run info chroot) and then tell us all on the list (do not email me personally), what you found wrong with my invocation of the command!!