Odd cron errors

Jamie jamie at geniegate.com
Wed Mar 16 13:57:39 UTC 2011


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


More information about the freebsd-chat mailing list