Operating System - HP-UX
1834821 Members
2087 Online
110070 Solutions
New Discussion

How to change the user id in NIS

 
yogesh kumar_2
Frequent Advisor

How to change the user id in NIS

How to change the user id in NIS
5 REPLIES 5
Steven Schweda
Honored Contributor

Re: How to change the user id in NIS

Same way you change anything in NIS? Change
the appropriate data file on the NIS master,
then "ypmake" and/or "yppush"?
Jan Mlotkiewicz
Occasional Advisor

Re: How to change the user id in NIS

I do this pretty regularly of late..

you need to:

1. change the name of the home dir on the system serving up home dirs.
2. change the /var/yp/src/passwd file to have the new account name / home directory
3. change the /var/yp/src/auto_home file to have the new account name / home dir location match up.
4. change the /var/yp/src/group file ( assuming you are using it ) to get any groups that the user account has, updated to use the new account name.
5. go to /var/yp and run a make against the updated maps. ( passwd / groups / auto.home )
Steven Schweda
Honored Contributor

Re: How to change the user id in NIS

yogesh kumar_2
Frequent Advisor

Re: How to change the user id in NIS

could you please explain me in stepwise.
yogesh kumar_2
Frequent Advisor

Re: How to change the user id in NIS

I got the solution