1838648 Members
2678 Online
110128 Solutions
New Discussion

Re: Cron

 
Charles Smith_1
Occasional Contributor

Cron

Will a cron job still work correctly if the cron job owner (userid) has been deactivated?

Thanks.
5 REPLIES 5
Bruno Vidal
Respected Contributor

Re: Cron

Hi,
If you mean by deactivated that the userid still exist, but that there is a "*" for the passwd, or noshell, yes the cronjob will be still working. If the userid doesn't exist anymore, no it won't (cron will not be able to launch anything for this userid).

Cheers.
Steven E. Protter
Exalted Contributor

Re: Cron

When the root account on my L2000 server suddenly became disabled two weeks ago(my backup still says he never tried to log on), cron jobs continued normally.

Actual experience should be helpful right?

If however you use userdel or sam to remove the account, I don't think the cron schedule is going to keep running.

I don't think its a good idea to run the box for a long time like that though.

passwd -f reactivates the account.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Helen French
Honored Contributor

Re: Cron

If the user is removed from the system, the cronjob will not run. But is it's disabled, yes the cronjob will run.
Life is a promise, fulfill it!
Darren Prior
Honored Contributor

Re: Cron

I believe it'll work as long as the user still exists on the system. Is there a special reason why you need it to work this way?

regards,

Darren.
Calm down. It's only ones and zeros...
Dario_1
Trusted Contributor

Re: Cron

Hi:

It will work only if the user exist. You could put a "*" in the password and cront will still work, but if the user is deleted from the system it will not work.

Regards,

DR