1833717 Members
2493 Online
110063 Solutions
New Discussion

NIS Migration query

 
Neale Machin
Advisor

NIS Migration query

We have migrated a NIS master from a 10.20 node to an 11.00
Our problems appear to be that when we highlight a user and go to modify
Two check boxes that we expect are not visible (1.Modify password options and 2.Modify passwd)

also If we try to just run passwd from the command line it prompts for Old passwd which we would have expected with yppasswd but not with passwd.

Any expert help would be a godsend

Note we are not in trusted mode
Just cos I look after Unix Boxes doesnt mean I wear sandals
2 REPLIES 2
Michael Kelly_5
Valued Contributor

Re: NIS Migration query

I don't know about 10.20 but in 11i running passwd as root will still prompt you for the OLD password.
The reason for this is that yppasswdd needs the old password to validate the request.
The way around this is to run
passwd -r files
on the NIS master and then run
make -C /var/yp

This is whst SAM does is you change the user's password via SAM.

HTH,
Michael.
The nice thing about computers is that they do exactly what you tell them. The problem with computers is that they do EXACTLY what you tell them.
A. Clay Stephenson
Acclaimed Contributor

Re: NIS Migration query

The passwd command has been modified to work in NIS,NIS+,files, and trusted mode. On your master server, add the user's in the usual way (if using SAM) or better via a script calling useradd. You then follow up this add with
/sbin/passwd -x max -n min username.
e.g. /sbin/passwd -x 90 -n 7 joe would allow joe's passwd to be valid for 90 days and could not be changed for at least 7 days. You can also use /sbin/passwd joe to set joe's passwd on the master server -- and not prompt for the old NIS passwd. After changing the passwd, you need to cd to /var/yp, and 'make' to rebuild/push the new map.

If you have large numbers of users, you will actually find it easier to script a user add because SAM limits the maximum numbers of users that can be processed to 500.
If it ain't broke, I can fix that.