View Issue Details

IDProjectCategoryView StatusLast Update
0000264My infrastructureGeneralpublic2024-12-31 23:12
Reporterdvl Assigned Todvl  
PrioritynormalSeverityminorReproducibilityhave not tried
Status resolvedResolutionfixed 
Summary0000264: remove orphaned crontabs
DescriptionI removed the dan user after migrating to dvl. The crontab entry remains.

Dec 31 02:04:00 mydev /usr/sbin/cron[43754]: (dan) ORPHAN (no passwd entry)

[2:04 mydev dvl ~/GitHub-backups/FreshPorts/freshports] % sudo ls -l /var/cron/tabs
total 28
-rw-------  1 root wheel 519 Mar  3  2023 dan
-rw-------  1 root wheel 581 Dec 31 02:03 dvl
-rw-------  1 root wheel 594 Feb 22  2024 logcheck
-rw-r--r--  1 root wheel   0 Oct  6  2017 tmp.43537
TagsNo tags attached.

Activities

dvl

2024-12-31 22:57

manager   ~0000350

Interesting that this does not detect the file:

[22:54 r730-01 dvl ~] % sudo ls -l /jails/mydev/var/cron/tabs/dan
-rw-------  1 root wheel 519 Mar  3  2023 /jails/mydev/var/cron/tabs/dan
[22:54 r730-01 dvl ~] % sudo ls -l /jails*/var/cron/tabs/dan
zsh: no matches found: /jails*/var/cron/tabs/dan


However, this works:

[22:55 r730-01 dvl ~] % sudo find /jails/*/var/cron/tabs -name dan
/jails/mydev/var/cron/tabs/dan
/jails/webserver/var/cron/tabs/dan

dvl

2024-12-31 22:58

manager   ~0000351

Got one fixed:

[22:57 webserver dvl ~] % sudo cat /var/cron/tabs/dan
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.RBZgMmr7tK installed on Sat Feb  4 23:29:44 2023)
# (Cron version -- $FreeBSD$)
#
# $Id: crontab.sample,v 1.7.2.9 2004/01/12 19:02:50 dan Exp $
#
# Copyright (c) 2001-2003 DVL Software
#
# use /bin/sh to run commands, overriding the default set by cron
SHELL=/bin/sh
# mail any output to `dan', no matter whose crontab this is
MAILTO=dan

YYYY_MM_DD=`eval date -v-${DAYS}d "+%Y-%m-%d"`

0000026	*	*		*	*	cd /usr/websites/freshports.org/backend && ./compare.sh > /dev/null 2>&1

[22:57 webserver dvl ~] % sudo rm  /var/cron/tabs/dan
[22:57 webserver dvl ~] % 

dvl

2024-12-31 23:00

manager   ~0000352

This one is gone
[22:58 mydev dvl ~] % id dan
id: dan: no such user
[22:58 mydev dvl ~] % sudo cat /var/cron/tabs/dan
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.ItHoAwDR2t installed on Fri Mar  3 21:38:46 2023)
# (Cron version -- $FreeBSD$)
# use /bin/sh to run commands, overriding the default set by cron
SHELL=/bin/sh
# mail any output to `dan', no matter whose crontab this is
MAILTO=dan@langille.org


#minute hour    mday    month   wday    command
#
# Save some entropy so that /dev/random can re-seed on boot.
23      1       *       *       *       /usr/bin/touch ~/.touch_a_file_to_force_backups 

Issue History

Date Modified Username Field Change
2024-12-31 02:06 dvl New Issue
2024-12-31 02:06 dvl Status new => assigned
2024-12-31 02:06 dvl Assigned To => dvl
2024-12-31 22:57 dvl Note Added: 0000350
2024-12-31 22:58 dvl Note Added: 0000351
2024-12-31 23:00 dvl Note Added: 0000352
2024-12-31 23:05 dvl Description Updated
2024-12-31 23:12 dvl Status assigned => resolved
2024-12-31 23:12 dvl Resolution open => fixed