Date: Fri, 3 Sep 2010 20:41:42 +0200 From: David DEMELIER <demelier.david@gmail.com> To: Roland Smith <rsmith@xs4all.nl> Cc: freebsd-questions@freebsd.org Subject: Re: watch(8) does not work in jails Message-ID: <AANLkTim_aPTgc9s%2BL%2BKpq8WCNCbAiSAXKmeFJjKHcTsC@mail.gmail.com> In-Reply-To: <AANLkTikcUfDos5sobb4FG-LPJuAEZMJp4mcZ1UAsOEkr@mail.gmail.com> References: <AANLkTikPvVqcOAdk3EJBmmP-6_AkFs-TuQnNqbi2r=Vr@mail.gmail.com> <20100816181703.GB66710@slackbox.erewhon.net> <AANLkTiku2SzjSVrSj3eZJnoY0dwbX4piKwOZ6R5ieoes@mail.gmail.com> <20100816225715.GA35248@slackbox.erewhon.net> <AANLkTikcUfDos5sobb4FG-LPJuAEZMJp4mcZ1UAsOEkr@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
2010/9/3 David DEMELIER <demelier.david@gmail.com>: > 2010/8/17 Roland Smith <rsmith@xs4all.nl>: >> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTim_aPTgc9s%2BL%2BKpq8WCNCbAiSAXKmeFJjKHcTsC>