From owner-freebsd-current@FreeBSD.ORG Tue Feb 28 15:10:07 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C778B1065672 for ; Tue, 28 Feb 2012 15:10:07 +0000 (UTC) (envelope-from freebsd-current@m.gmane.org) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) by mx1.freebsd.org (Postfix) with ESMTP id 74E958FC1B for ; Tue, 28 Feb 2012 15:10:07 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1S2Ogl-0005HG-Bu for freebsd-current@freebsd.org; Tue, 28 Feb 2012 16:10:03 +0100 Received: from np-19-75.prenet.pl ([np-19-75.prenet.pl]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 28 Feb 2012 16:10:03 +0100 Received: from jb.1234abcd by np-19-75.prenet.pl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 28 Feb 2012 16:10:03 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-current@freebsd.org From: jb Date: Tue, 28 Feb 2012 15:07:43 +0000 (UTC) Lines: 33 Message-ID: References: <20120228092244.GB48977@mech-cluster241.men.bris.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 79.139.19.75 (Mozilla/5.0 (X11; FreeBSD i386; rv:9.0.1) Gecko/20100101 Firefox/9.0.1) Subject: Re: negative group permissions? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Feb 2012 15:10:07 -0000 Anton Shterenlikht bristol.ac.uk> writes: > > This was discussed in questions@ with no resolution. > Anybody here can advise further? > ... Regarding file .seq or .SEQ It is an intermediate-processing (run-time) lockfile found in various spool dirs and their sub-dirs, like /var/spool/cron/ /at, /lpd, etc. It is used to save job# by the respective programs (cron, at, etc). You can find a ref to .SEQ in file at.c in at port sources. I did not see ref to .seq in lpr or cron port sources. The periodic security check /etc/periodic/security/110.neggrpperm checks for risque condition like ! -perm +010 -and -perm +001 The file should not be executable, according to its purpose. So the lpr.c should be changed from if ((fd = open(buf, O_RDWR|O_CREAT, 0661)) < 0) { to if ((fd = open(buf, O_RDWR|O_CREAT, 0660)) < 0) { File a bug report. jb