From owner-freebsd-questions@FreeBSD.ORG Fri Sep 3 18:40:04 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 46D2410656A8 for ; Fri, 3 Sep 2010 18:40:04 +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 C56AB8FC14 for ; Fri, 3 Sep 2010 18:40:03 +0000 (UTC) Received: by bwz20 with SMTP id 20so2165974bwz.13 for ; Fri, 03 Sep 2010 11:40:01 -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=kyo/03deT9lHO2RrxDh/9d+Lj3ZccHhOxdr7u//1KL4=; b=PzIWe85NcMLdj204CUlEPDAt6E66rOsOkDJkvkKr7JYmGTbHxSQ6Bu2gD53p0YJoYV 7mjxBMriGq7KJAsRAp5qXJQamSxicwk+V87DOQKW6Y4wGrs0hXn5Gj5HV7NYcojg7t8p RYrqnfd2UKsitLD6ueb2F5xqRdg80Y23pTGzs= 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=eWpmJFHHnbefUH7W33PzBXGfPPriOXVCk0JNM4QLeTjESgPCYUThj4yohjeF2mkOye urq/4Iyxc8V5VYJulK3/HRBMIxKxr+u7+lAwuj5K+RF1CUQ/hFlV+jc8u8YbloNYfjqZ 4q4c39nHOjlYIpW3VOxSPXC1p4U80Egs4z1uQ= MIME-Version: 1.0 Received: by 10.204.160.90 with SMTP id m26mr63510bkx.45.1283539201363; Fri, 03 Sep 2010 11:40:01 -0700 (PDT) Received: by 10.204.80.167 with HTTP; Fri, 3 Sep 2010 11:40:01 -0700 (PDT) In-Reply-To: <20100816225715.GA35248@slackbox.erewhon.net> References: <20100816181703.GB66710@slackbox.erewhon.net> <20100816225715.GA35248@slackbox.erewhon.net> Date: Fri, 3 Sep 2010 20:40:01 +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:40:04 -0000 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 i= ts >> > 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 /p= eople/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 /p= eople/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 the > wrong directory. If ls is run inside the jail, it should be /dev/pts/N, n= ot > /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.n= l/~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: C321= A725) > 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---- 1 zazak tty 0, 118 3 Sep 20:39 /dev/pts/0 crw--w---- 1 zazak tty 0, 99 3 Sep 07:07 /dev/pts/4 crw--w---- 1 zazak tty 0, 94 3 Sep 20:39 /dev/pts/6 People# who zazak pts/0 1 Sep 19:07 (92.147.166.20:S.) zazak pts/4 10 Aug 16:00 (92.147.166.20:S.) People# watch pts/0 watch: fatal: cannot open snoop device And that's it. --=20 Demelier David