Does cron still run for disabled users?

3

If a user is disabled (with passwd -l user) on a server, are their cron jobs also disabled?

Or would they still run?

bsmoo

Posted 2013-07-16T08:43:11.393

Reputation: 185

Answers

5

They should not run.

From the manpage of cron(1):

cron and at jobs will be not be executed if the user’s account is locked. Only accounts which are not locked as defined in shadow(4) will have their job or process executed.

slhck

Posted 2013-07-16T08:43:11.393

Reputation: 182 472