- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- password expired caused cron failure?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2007 09:29 AM
12-18-2007 09:29 AM
password expired caused cron failure?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2007 10:24 AM
12-18-2007 10:24 AM
Re: password expired caused cron failure?
As long as your user is listed in /usr/lib/cron/cron.allow , the cron job will run regardless of password expiration.
Hope this helps,
Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2007 11:04 AM
12-18-2007 11:04 AM
Re: password expired caused cron failure?
Depend how you right the cron job.
If root does an su - username, the cron job will keep running.
If the cron job has to try a password free login via ssh, it will fail.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2007 11:12 AM
12-18-2007 11:12 AM
Re: password expired caused cron failure?
> CMD: (. $HOME/.profile; $APPDEV/space_monitor.sh) > /tmp/local/message/log.err 2>&1
! user (appdev) password has expired Mon Dec 17 01:00:00 2007
appdev 2783 c Mon Dec 17 01:00:00 2007 rc=1
this is from the log. is it because it execute the .profile?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2007 11:15 AM
12-18-2007 11:15 AM
Re: password expired caused cron failure?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2007 05:10 AM
12-19-2007 05:10 AM
Re: password expired caused cron failure?
I had this happen. The job would run, but the parts that needed the password working would fail. The part that failed for me was using scp with an embedded pass phrase between two internal hosts. SSH didn't want to work if the password was expired. I didn't blame ssh. It was only doing it's job.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2007 05:25 AM
12-19-2007 05:25 AM
Re: password expired caused cron failure?
I run into this regularly. If the user's password is expired, as in they can't log in anymore, not just that they have to change it on next login, their cron jobs will fail.
You won't be able to ssh into the account either. You will be able to su into it as root or you can set other users to sudo su -.
The way around this, if you don't want people accessing the account directly, is to set the encrypted password to NP. This is obviously an invalid encrypted password so nobody will be able to log into the account directly. It's also not the '*' for locked accounts so ssh, sudo su, and cron still function.
HTH;
Doug O'Leary
------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2007 05:33 AM
12-19-2007 05:33 AM