NetBSD Problem Report #46127

From holger@weiss.in-berlin.de  Fri Mar  2 11:53:46 2012
Return-Path: <holger@weiss.in-berlin.de>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id E5CFB63B952
	for <gnats-bugs@gnats.NetBSD.org>; Fri,  2 Mar 2012 11:53:45 +0000 (UTC)
Message-Id: <20120302115346.A4B0E43D4A@mail.weiss.in-berlin.de>
Date: Fri,  2 Mar 2012 12:53:46 +0100 (CET)
From: Holger Weiss <holger@weiss.in-berlin.de>
To: gnats-bugs@gnats.NetBSD.org
Subject: "crontab <file>" fails for unprivileged users
X-Send-Pr-Version: 3.95

>Number:         46127
>Category:       bin
>Synopsis:       "crontab <file>" fails for unprivileged users
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Mar 02 11:55:00 +0000 2012
>Closed-Date:    Wed Mar 14 18:34:42 +0000 2012
>Last-Modified:  Wed Mar 14 18:34:42 +0000 2012
>Originator:     Holger Weiss
>Release:        NetBSD 6.0_BETA (2012-02-29)
>Organization:
Individual Network Berlin e.V.
>Environment:
System: NetBSD petty.weiss.in-berlin.de 6.0_BETA NetBSD 6.0_BETA (GENERIC) #0: Wed Feb 29 17:02:14 CET 2012 holger@smith.weiss.in-berlin.de:/src/build/obj/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
Executing "crontab <file>" fails due to a permission error:

| crontab: cannot create `tabs/tmp.00010572aa': Permission denied

The permissions on "/usr/bin/crontab" are correct ("-r-sr-xr-x", owned
by root), and "crontab -e" works fine.
>How-To-Repeat:
As an unprivileged user, execute the following commands:

	echo '* * * * * /usr/bin/true' > /tmp/crontab-example
	crontab /tmp/crontab-example
>Fix:
Unknown.

>Release-Note:

>Audit-Trail:
From: "Christos Zoulas" <christos@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/46127 CVS commit: src/external/bsd/cron/dist
Date: Fri, 2 Mar 2012 14:26:41 -0500

 Module Name:	src
 Committed By:	christos
 Date:		Fri Mar  2 19:26:40 UTC 2012

 Modified Files:
 	src/external/bsd/cron/dist: crontab.c

 Log Message:
 PR/46127: Holger Weiss: "crontab <file>" fails for unprivileged users
 XXX: Pullup to 6


 To generate a diff of this commit:
 cvs rdiff -u -r1.3 -r1.4 src/external/bsd/cron/dist/crontab.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->pending-pullups
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sat, 03 Mar 2012 18:36:09 +0000
State-Changed-Why:
pullup-6 #88


From: "Jeff Rizzo" <riz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/46127 CVS commit: [netbsd-6] src/external/bsd/cron/dist
Date: Wed, 7 Mar 2012 23:41:18 +0000

 Module Name:	src
 Committed By:	riz
 Date:		Wed Mar  7 23:41:17 UTC 2012

 Modified Files:
 	src/external/bsd/cron/dist [netbsd-6]: crontab.c

 Log Message:
 Pull up following revision(s) (requested by dholland in ticket #88):
 	external/bsd/cron/dist/crontab.c: revision 1.4
 	external/bsd/cron/dist/crontab.c: revision 1.5
 PR/46127: Holger Weiss: "crontab <file>" fails for unprivileged users
 XXX: Pullup to 6
 Fix multiple problems in previous commit:
 1.) Correct set-uid check to allow "root" to run "crontab -l" again.
 2.) Don't the the last error reported in "errno" in case "crontab" is not
     installed set-uid "root". As no system-call failed "errno" is set
     to zero.


 To generate a diff of this commit:
 cvs rdiff -u -r1.3 -r1.3.8.1 src/external/bsd/cron/dist/crontab.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: pending-pullups->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Wed, 14 Mar 2012 18:34:42 +0000
State-Changed-Why:
Pullup done last week.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.