From owner-freebsd-questions@FreeBSD.ORG Tue Apr 20 18:24:36 2010 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 065611065674 for ; Tue, 20 Apr 2010 18:24:36 +0000 (UTC) (envelope-from gosand1982@yahoo.com) Received: from n75.bullet.mail.sp1.yahoo.com (n75.bullet.mail.sp1.yahoo.com [98.136.44.51]) by mx1.freebsd.org (Postfix) with SMTP id D73388FC1B for ; Tue, 20 Apr 2010 18:24:35 +0000 (UTC) Received: from [216.252.122.216] by n75.bullet.mail.sp1.yahoo.com with NNFMP; 20 Apr 2010 18:24:35 -0000 Received: from [98.137.27.132] by t1.bullet.sp1.yahoo.com with NNFMP; 20 Apr 2010 18:24:35 -0000 Received: from [67.195.9.97] by t4.bullet.mail.gq1.yahoo.com with NNFMP; 20 Apr 2010 18:24:35 -0000 Received: from [127.0.0.1] by omp101.mail.gq1.yahoo.com with NNFMP; 20 Apr 2010 18:24:35 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 356349.98790.bm@omp101.mail.gq1.yahoo.com Received: (qmail 6432 invoked by uid 60001); 20 Apr 2010 18:24:35 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1271787875; bh=uMtXExY6ufo7wz83saQACs2uGh0CIog+YvDTklCv93s=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=KRJCju0FG7wvvhPh2LCV13VCceiFAuQ2yn/Cq+mC/7e6MFd5aq2Wetj8Ld+PqGNhESt/AGqLbWhNyXz7bHSvotluCH1O99BRSpcPycQHdi02+JjTpQmo2XrxmBe+WSam+KBcKCtmgHVMloygTV35nWHhFzlNjz2b7yttZyjg+Ts= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=u3kqCmtO2JlrNwnlNnQa2euNUCZbbZ7szSg0yGWt4ionka++3OmH8z2bT5Ys/e+YAEGFlnW/1wHuQTnTyFZHKTnrWqG328mQ82GK4q37GSFUvE72pApxJY0BqUixk3rc42FGr149XUJYm+JSOBbM4NddUf+SPxjCnn/zF5VOYF0=; Message-ID: <151457.5414.qm@web111611.mail.gq1.yahoo.com> X-YMail-OSG: O.KXPmwVM1lMx5kywoWcG99ES9XWM8aMP12uHF68Uh2oIWg VuZ4eRUszVlLKgOSEuj9CZm7U2jUg7pf6Bm97MZoZnfay5bCr92kyGwWVrUr IdqdndXbR49QXrXVzKHRqy7G2bMjja.UN90UY8xgPFbj5x8AEFGAiRJ6BcUR aav47I9zj9fp0JqupAjSE3Z_OYmpAkxE4xZuKIhRs_3SQy13g_l5vqIP1u73 NMW6YVxgUe1wyVVadKNAOAQbLgTRaBu0- Received: from [98.210.228.94] by web111611.mail.gq1.yahoo.com via HTTP; Tue, 20 Apr 2010 11:24:35 PDT X-Mailer: YahooMailRC/348.5 YahooMailWebService/0.8.102.267879 Date: Tue, 20 Apr 2010 11:24:35 -0700 (PDT) From: George Sanders To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailman-Approved-At: Tue, 20 Apr 2010 19:38:24 +0000 Subject: How can I confirm proper chroot ? 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: Tue, 20 Apr 2010 18:24:36 -0000 Hello, I am using a particular program that has a command line option to "chroot to the current directory". But I would like to make sure ... I want to be sure what directory the executable is actually rooted in. How can I do this ? Perhaps with lsof ? I don't see any information from the 'ps' output that would give me definitive information: nobody 96074 0.0 0.1 8804 3896 ?? Ss 11:16AM 0:00.01 /usr/local/sbin/thttpd -d /htdocs -r -l /dev/null So I'd like some independent confirmation of where this running program is actually rooted... Thanks.