Subject: bin/3800: crontab(1) creates tab files under wrong name
To: None <gnats-bugs@gnats.netbsd.org>
From: Peter Simons <simons@peti.cys.de>
List: netbsd-bugs
Date: 06/27/1997 11:18:25
>Number:         3800
>Category:       bin
>Synopsis:       crontab(1) creates tab files under wrong name
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 27 02:20:01 1997
>Last-Modified:
>Originator:     Peter Simons
>Organization:
CyberSolutions GmbH
>Release:        1.2
>Environment:
	
System: NetBSD peti.cys.de 1.2.1 (PETI) #2: Sun Jun 15 20:31:52 MET DST 1997 simons@peti.cys.de:/usr/src/sys/arch/i386/compile/PETI i386


>Description:
	I wanted to create a crontab for the user 'apache', which is
	the user of the httpd on my site. Since the user doesn't have
	a valid shell or password, I logged in as 'root' and started
	crontab(1) with '-e -u apache'. Crontab did not create a tab
	file for the user 'apache', though but for the user 'apac' --
	which doesn't exist:

	| Jun 27 11:01:33 peti crontab[6180]: (root) BEGIN EDIT (apac)
	| Jun 27 11:01:35 peti crontab[6180]: (root) END EDIT (apac)

	When loggin in as 'apache' via su -m and simply doing 'crontab
	-e' it works fine.

>How-To-Repeat:
	
>Fix:
	
>Audit-Trail:
>Unformatted: