From owner-freebsd-questions@FreeBSD.ORG Fri Sep 3 18:41:43 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 C916710656B1 for ; Fri, 3 Sep 2010 18:41:43 +0000 (UTC) (envelope-from demelier.david@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 526F08FC1B for ; Fri, 3 Sep 2010 18:41:43 +0000 (UTC) Received: by bwz20 with SMTP id 20so2167616bwz.13 for ; Fri, 03 Sep 2010 11:41:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=5msdxBE7LHE+B/0GOVYZPAgdRMOPzo6j4zpADVuBNhE=; b=wggjLcpVqn+0s9TW/8sqq0O2twbVX+jXjPCBMZUxO0jvWYzMP47pNcGXl4p3cuYN/a 30nWN6aqFJHZfq4WA70Lu9Mo8AP9I1Kizrh2mR+hEJ948lhgdktB16Ln2y94UiP47dM0 xPo1gRXT/bUH4G+lz8VpF/0/aA4wF0zCx0lsE= 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:content-transfer-encoding; b=lz/c4ljtxX4GLJZ+a9txxfh3D30YYVIGf9+nFIqPH3vUoAvmCalv4L/jVg1K6+s2E2 1FAklByFxIEZypGWqyjtoZq04UCufI5E9gMRotIz/F92n6Dqk8R1Uvc5AP5Pnn3srfw4 n0F6v71zTsawfFCDKepxCqPEfX36eKce/lAso= MIME-Version: 1.0 Received: by 10.204.112.146 with SMTP id w18mr891638bkp.16.1283539302383; Fri, 03 Sep 2010 11:41:42 -0700 (PDT) Received: by 10.204.80.167 with HTTP; Fri, 3 Sep 2010 11:41:42 -0700 (PDT) In-Reply-To: References: <20100816181703.GB66710@slackbox.erewhon.net> <20100816225715.GA35248@slackbox.erewhon.net> Date: Fri, 3 Sep 2010 20:41:42 +0200 Message-ID: From: David DEMELIER To: Roland Smith Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: watch(8) does not work in jails 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: Fri, 03 Sep 2010 18:41:44 -0000 2010/9/3 David DEMELIER : > 2010/8/17 Roland Smith : >> On Tue, Aug 17, 2010 at 12:09:23AM +0200, David DEMELIER wrote: >>> > Does /dev/pts/0 actually exist in the jail's devfs instance, and are = its >>> > permissions correct? >>> > >>> >>> (In jail) : >>> >>> # ls -l /dev/pts/* >>> crw--w---- =C2=A01 markand =C2=A0tty =C2=A0 =C2=A00, =C2=A094 17 Aug 00= :06 /people/dev/pts/0 >>> crw--w---- =C2=A01 markand =C2=A0tty =C2=A0 =C2=A00, =C2=A096 17 Aug 00= :06 /people/dev/pts/1 >>> crw--w---- =C2=A01 root =C2=A0 =C2=A0 tty =C2=A0 =C2=A00, 101 21 Jul 00= :07 /people/dev/pts/2 >>> crw--w---- =C2=A01 markand =C2=A0tty =C2=A0 =C2=A00, 108 17 Aug 00:06 /= people/dev/pts/3 >>> crw--w---- =C2=A01 markand =C2=A0tty =C2=A0 =C2=A00, =C2=A099 16 Aug 01= :28 /people/dev/pts/4 >>> crw--w---- =C2=A01 markand =C2=A0tty =C2=A0 =C2=A00, 112 17 Aug 00:05 /= people/dev/pts/5 >>> crw--w---- =C2=A01 root =C2=A0 =C2=A0 tty =C2=A0 =C2=A00, 111 17 Aug 00= :06 /people/dev/pts/6 >>> crw--w---- =C2=A01 root =C2=A0 =C2=A0 tty =C2=A0 =C2=A00, 114 16 Aug 23= :53 /people/dev/pts/7 >>> crw--w---- =C2=A01 root =C2=A0 =C2=A0 tty =C2=A0 =C2=A00, 100 17 Aug 00= :06 /people/dev/pts/8 >> >> I think you mounted your devfs incorrectly or you started the jail in th= e >> wrong directory. If ls is run inside the jail, it should be /dev/pts/N, = not >> /people/dev/pts/N! >> >> Roland >> -- >> R.F.Smith =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 http://www.xs4all.= nl/~rsmith/ >> [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated= ] >> pgp: 1A2B 477F 9970 BA3C 2914 =C2=A0B7CE 1277 EFB0 C321 A725 (KeyID: C32= 1A725) >> > > Sorry I made a mistake while I was writing. In fact there is the > permissions in the jail : > > markand@Orange ~ $ sudo jexec 1 tcsh > # su - > People# ls -l /dev/pts/* > crw--w---- =C2=A01 zazak =C2=A0tty =C2=A0 =C2=A00, 118 =C2=A03 Sep 20:39 = /dev/pts/0 > crw--w---- =C2=A01 zazak =C2=A0tty =C2=A0 =C2=A00, =C2=A099 =C2=A03 Sep 0= 7:07 /dev/pts/4 > crw--w---- =C2=A01 zazak =C2=A0tty =C2=A0 =C2=A00, =C2=A094 =C2=A03 Sep 2= 0:39 /dev/pts/6 > People# who > zazak =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 pts/0 =C2=A0 =C2=A0 1 Sep 19:07 = (92.147.166.20:S.) > zazak =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 pts/4 =C2=A0 =C2=A010 Aug 16:00 = (92.147.166.20:S.) > People# watch pts/0 > watch: fatal: cannot open snoop device > > And that's it. > > -- > Demelier David > People# write pts/0 write: /dev/pts/7: No such file or directory Then I really don't understand. --=20 Demelier David