- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- User passwords & cron jobs?
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
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
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
10-01-2001 11:01 AM
10-01-2001 11:01 AM
User passwords & cron jobs?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2001 11:08 AM
10-01-2001 11:08 AM
Re: User passwords & cron jobs?
Do remeber that the userid of all the users should be same on both the nodes. You can use NIS to maintian the user id and password information. That way you won't have to worry about changing the passowrd on both the nodes individually.
My suggestion would be to have the cron job to be same on both the nodes and before running the cron job pertaining to a particular package the script should check the existance of package on that node. If it exist, the rest of the job is executed or it exits without doing anything.
At the same time the same script is running on the other node and if the package exists over there, it is executed over there, or else it fails.
Hope this helps.
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2001 03:51 PM
10-01-2001 03:51 PM
Re: User passwords & cron jobs?
The easy way is to cut and paste the relevant sections out of the /etc/passwd file on one node and put them on the second. NIS is another way to keep things synced, but this is hideously insecure. NIS+ is so secure that it's unusable.
Welcome to the wonderful world of system administration! I know of no good solution to the "how do I sync users/software" quandry. (But I'd be glad to listen to ideas from other folks here.)
Cron Jobs:
I'm thinking about abandoning cron altogether. It's just too node-specific. Instead I'm considering having a little scheduler daemon run as part of each package normally using cron.
A short perl script using Proc::Daemon (http://www.perl.com/CPAN-local/modules/by-module/Proc/) should be able to handle running routine tasks. If I get real lazy I may just rip off someone else's (http://www.megadodo.demon.co.uk/perl/)
The advantage is that these little cron-lets can be application/package-specific rather than node-specific. They will fail over with the package, and if you wanted to get real fancy could even report their health via EMS so you don't have to wonder why that job hasn't run yet...
Note that this is still just an idea, so there may yet be major practical problems with its implementation. If you find them, please let me know.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2001 06:01 AM
10-02-2001 06:01 AM
Re: User passwords & cron jobs?
You can view this document by going into the Knowledge Database and search on the document ID.
We recommend using NIS as the primary solution but users may also use a 'wrapper' command in place of the 'passwd' command to simultaneously update both servers' password files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2001 07:22 AM
10-02-2001 07:22 AM