watch(8) does not work in jails
David DEMELIER
demelier.david at gmail.com
Fri Sep 3 18:41:44 UTC 2010
2010/9/3 David DEMELIER <demelier.david at gmail.com>:
> 2010/8/17 Roland Smith <rsmith at 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---- 1 markand tty 0, 94 17 Aug 00:06 /people/dev/pts/0
>>> crw--w---- 1 markand tty 0, 96 17 Aug 00:06 /people/dev/pts/1
>>> crw--w---- 1 root tty 0, 101 21 Jul 00:07 /people/dev/pts/2
>>> crw--w---- 1 markand tty 0, 108 17 Aug 00:06 /people/dev/pts/3
>>> crw--w---- 1 markand tty 0, 99 16 Aug 01:28 /people/dev/pts/4
>>> crw--w---- 1 markand tty 0, 112 17 Aug 00:05 /people/dev/pts/5
>>> crw--w---- 1 root tty 0, 111 17 Aug 00:06 /people/dev/pts/6
>>> crw--w---- 1 root tty 0, 114 16 Aug 23:53 /people/dev/pts/7
>>> crw--w---- 1 root tty 0, 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, not
>> /people/dev/pts/N!
>>
>> Roland
>> --
>> 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)
>>
>
> Sorry I made a mistake while I was writing. In fact there is the
> permissions in the jail :
>
> markand at 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.
>
> --
> Demelier David
>
People# write pts/0
write: /dev/pts/7: No such file or directory
Then I really don't understand.
--
Demelier David
More information about the freebsd-questions
mailing list