From owner-freebsd-questions@FreeBSD.ORG Mon Aug 16 18:17:10 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 A52AE10656C3 for ; Mon, 16 Aug 2010 18:17:10 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr12.xs4all.nl (smtp-vbr12.xs4all.nl [194.109.24.32]) by mx1.freebsd.org (Postfix) with ESMTP id 399238FC16 for ; Mon, 16 Aug 2010 18:17:09 +0000 (UTC) Received: from slackbox.erewhon.net (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr12.xs4all.nl (8.13.8/8.13.8) with ESMTP id o7GIH8g6025228; Mon, 16 Aug 2010 20:17:08 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.erewhon.net (Postfix, from userid 1001) id DF40FBA99; Mon, 16 Aug 2010 20:17:03 +0200 (CEST) Date: Mon, 16 Aug 2010 20:17:03 +0200 From: Roland Smith To: David DEMELIER Message-ID: <20100816181703.GB66710@slackbox.erewhon.net> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+pHx0qQiF2pBVqBT" Content-Disposition: inline In-Reply-To: X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Scanned: by XS4ALL Virus Scanner 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: Mon, 16 Aug 2010 18:17:10 -0000 --+pHx0qQiF2pBVqBT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Aug 16, 2010 at 11:23:00AM +0200, David DEMELIER wrote: > Hi, >=20 > I enabled `device snp' in my kernel config file and with this I can > use the command watch(8) to see any tty device attached. For example : >=20 > # watch ttyv0 >=20 > Give me the output of the console. >=20 > But in jails, it's not the same thing, I tried the following : >=20 > # jexec 1 tcsh > # su - > People# watch pts/0 > watch: fatal: cannot open snoop device >=20 > Is there a limitation of watch(8), or jails ? Does /dev/pts/0 actually exist in the jail's devfs instance, and are its permissions correct? Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --+pHx0qQiF2pBVqBT Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iEYEARECAAYFAkxpgJ8ACgkQEnfvsMMhpyVNXwCgpYGC/uZXruPtFc8Y10/jje8i usgAn0mz4mcS8lXk8WlTNdFci9BpNsle =ds3F -----END PGP SIGNATURE----- --+pHx0qQiF2pBVqBT--