Operating System - HP-UX
1833461 Members
3266 Online
110052 Solutions
New Discussion

Re: password aging - cron

 
SOLVED
Go to solution
Joyce Suganthy
Advisor

password aging - cron

Hi

An id was disabled because of password aging policy. This id has some cron job running in the server. Will the cron jobs be effected if the id has been disabled?

Regards
Joyce

5 REPLIES 5
Rajeev  Shukla
Honored Contributor

Re: password aging - cron

Yes, if the account get disabled the cron jobs of that userid will also be effected. They wouldn't run untill and unless you enable the user account
Bill Hassell
Honored Contributor
Solution

Re: password aging - cron

No. crin does not login. The password process is handled by login but when creon runs, it takes on the user ID of the cron job's owner while it runs, but it does not care if the user can login or not.


Bill Hassell, sysadmin
Steven E. Protter
Exalted Contributor

Re: password aging - cron

If the cron job uses the following syntax it will not be affected:

/usr/bin/su - username -c "command"

As part of the root cron.

Thats how I do it to avoid these issues. root cron runs even when the id is locked up due to too many bad authentication attempts.

I don't know how it is for regular users.

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
Bill Hassell
Honored Contributor

Re: password aging - cron

Sorry, my keyboard doesn't understand how I type the word cron ;-) I tested cron for a normal user, let it run once, then disabled the account and cron ran again for the disabled user with no problem.


Bill Hassell, sysadmin
Joyce Suganthy
Advisor

Re: password aging - cron

Hi Bill,

Thanks a lot for testing the scenario.

Thanks again

regards
Joyce