watch(8) does not work in jails

Roland Smith rsmith at xs4all.nl
Fri Sep 3 20:23:34 UTC 2010


On Fri, Sep 03, 2010 at 08:40:01PM +0200, David DEMELIER wrote:
> 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

That looks OK.

> 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

For watch(1) to work, you need the device snp(4) either loaded as a module or
built into the kernel. It's not in the GENERIC kernel.

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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20100903/24b4e979/attachment.pgp


More information about the freebsd-questions mailing list