From owner-freebsd-questions Thu Jun 27 11:58:42 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id LAA16938 for questions-outgoing; Thu, 27 Jun 1996 11:58:42 -0700 (PDT) Received: from who.cdrom.com (who.cdrom.com [204.216.27.3]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id LAA16933; Thu, 27 Jun 1996 11:58:40 -0700 (PDT) Received: from relay-4.mail.demon.net (relay-4.mail.demon.net [158.152.1.108]) by who.cdrom.com (8.6.12/8.6.11) with SMTP id LAA05600 ; Thu, 27 Jun 1996 11:58:38 -0700 Received: from post.demon.co.uk ([158.152.1.72]) by relay-4.mail.demon.net id ai21846; 27 Jun 96 18:23 GMT Received: from jraynard.demon.co.uk ([158.152.42.77]) by relay-3.mail.demon.net id aa27054; 27 Jun 96 18:09 +0100 Received: (from fqueries@localhost) by jraynard.demon.co.uk (8.6.12/8.6.12) id MAA00863; Thu, 27 Jun 1996 12:26:42 GMT Date: Thu, 27 Jun 1996 12:26:42 GMT Message-Id: <199606271226.MAA00863@jraynard.demon.co.uk> From: James Raynard To: bill@twwells.com CC: freebsd-questions@freebsd.org, freebsd-hackers@freebsd.org In-reply-to: <4qtdi8$gjd@twwells.com> (bill@twwells.com) Subject: Re: a talkd/write improvement I made Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >>>>> bill@twwells.com (T. William Wells) writes: > > One of the annoyances of talk is that it's all or nothing. If one > has mesg y, anyone can talk to you; otherwise, no one can. So I > modified talkd so that it checks a .talkrc file in one's home > directory. A .talkrc might contain something like this: > steph@cyberenet.net > !*@cyberenet.net > *@admin.cyberenet.net > This means: allow steph@cyberenet.net to "talk"; forbid everyone > else on that machine. Allow anyone at admin.cyberenet.net to talk; > forbid everyone else. (It's using fnmatch(3).) Sounds useful. > This is all well and good, except that the write program can also > be an annoyance. So I modified it, too. But there's a problem. > While talkd runs as root and so can see anyone's .talkrc, write > runs as the invoking user and if that user can't see the callee's > .talkrc, write reverts to the default behavior, which is to allow > the write. How about *not* allowing the write if .talkrc exists but is unreadable? That way, I can make my .talkrc readable by a group that represents, for example, people working on the same project, and use it to filter them more selectively, while shutting everyone else out. If .talkrc does not exist, then allow the write (for compatibility with existing behaviour). > Anyway, if the FreeBSD people want the patches, I'll send them > along. But if they want them, they probably should let me know > how they want the above irregularity resolved.... Thanks for the offer. I've Cc'd this to freebsd-hackers to see if there are any other comments on this. -- James Raynard, Edinburgh, Scotland james@jraynard.demon.co.uk