- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- yppasswd and NIS passwd maps update
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
Discussions
Discussions
Forums
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
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
тАО05-29-2001 07:54 PM
тАО05-29-2001 07:54 PM
When a user changes his password via commd "yppasswd" at NIS Client, the NIS Master "/etc/passwd" file is auto-updated (verified via "ll" and "grep userid" before & after). However, the NIS passwd maps (passwd.byuid, passwd.byname) are not auto-updated (verified via "ll" and "yppoll" a few hrs later). We update these NIS password maps by running a cron job commd "ypmake passwd" during 12am daily.
Questions :
a) Is running a cron "ypmake passwd" the officially correct way to update NIS passwd maps when there are password changes via "yppasswd" on NIS Clients ? Is there a config file somewhere on NIS Master that sets the auto-update of the NIS passwd maps when clients issue "yppasswd" at NIS Clients ?
b) How do I find out whether we are using NIS+ or NIS, and it's version ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2001 01:02 AM
тАО05-30-2001 01:02 AM
Re: yppasswd and NIS passwd maps update
ypmake will re-distribute your maps. However you are correct there are other "better" ways of transfereing the maps, yppush on your master, ypxfr on slaves
yppush passwd
on your slave
ypxfr passwd
These are usually croned in say twice a day.
You are using NIS as NIS+ uses different commands. You can look for the the ypinit/ypbind/ypserv process depending if you are on a master/client/slave (not in any particular order).
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2001 01:23 AM
тАО05-30-2001 01:23 AM
Re: yppasswd and NIS passwd maps update
I understand that "yppush" and "ypxfr" commds are for updating the NIS Maps between NIS Master and NIS Slaver Servers. But I'm actually wondering why "yppasswd" auto-updates the source /etc/passwd on NIS Master BUT did NOT auto-update the NIS Master passwd maps i.e. passwd.byuid and passwd.byname
Sorry for not being clear in my post.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2001 01:41 AM
тАО05-30-2001 01:41 AM
Re: yppasswd and NIS passwd maps update
'ypmake passwd' pushes the passwd file map from master to clients.There is no any config file that modifies the map whenever user changes his password(can do it using cron periodically).
u can find whether u r using sna by listing the software(swlist)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2001 02:51 AM
тАО05-30-2001 02:51 AM
Re: yppasswd and NIS passwd maps update
if u are using commands starting with yp, u are using NIS
if u are using NIS + , none of the yp commands work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2001 07:27 AM
тАО05-30-2001 07:27 AM
SolutionA cron job should always be setup to transfer maps at specific times.
TO pull from clients...There are several default ypxfers built into HP-UX, which should be scheduled roughly.
/var/yp/ypxfr_1perhour
/var/yp/ypxfr_1perday
/var/yp/ypsrc_2perday
In a big NIS environment, you may have to create and transfer the 1per hour much more than the default... If clients bind to a slave, the passwd may have been changed on another machine, but will not be available to all for 1 hour.
Otherwise, you can run yppush from the server in a similar fashion. Because not all maps are updated regularly, I usually force a complete ypmake at 12AM and 12PM daily, and force a complete map transfer from slaves then too...
Regards,
Shannon