Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Mar 2011 08:31:54 -0500
From:      Jamie <jamie@geniegate.com>
To:        freebsd-chat@freebsd.org
Subject:   Odd cron errors
Message-ID:  <20110316133154.GE2565@apollo.podro.com>

next in thread | raw e-mail | index | archive | help
I'm running cron in a jail, and I see these errors filling up crons
logfile

It *appears* to be coming from atrun, wanting to set up priority
from /etc/login.conf

if (setusercontext(NULL, pentry, uid, LOGIN_SETALL &
                ~(LOGIN_SETPRIORITY | LOGIN_SETPATH | LOGIN_SETENV)) !=
				0)
				            exit(EXIT_FAILURE); /* setusercontext()
							logged the error */

I actually very much do NOT want atrun to be tinkering with the 
priority (as I'd like to have it run in the idle task eventually)

Is there a way, short of recompiling, that I can convince atrun
not to do this?

Jamie


18:10:00 web cron[]: setpriority 'root' (daemon): Permission denied
18:11:00 web /usr/sbin/cron[]: (operator) CMD (/usr/libexec/save-entropy)
18:11:00 web cron[]: setpriority 'operator' (daemon): Permission denied
18:15:00 web /usr/sbin/cron[]: (root) CMD (/usr/libexec/atrun)
18:15:00 web cron[]: setpriority 'root' (daemon): Permission denied

-- 
http://www.geniegate.com                    Custom web programming
Perl * Java * UNIX                        User Management Solutions



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110316133154.GE2565>