System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

How to change user id (672 to 673) in NIS users (Through command)

yogesh kumar_2
Frequent Advisor

How to change user id (672 to 673) in NIS users (Through command)

Hi,

My problem is already a user is having user id 672.The same user id 672 is assigned to me.So i want to know how to change user id from 672 to 673 in NIS users.(How to change in commands)

regards
yogi
5 REPLIES
Alexander Chuzhoy
Honored Contributor

Re: How to change user id (672 to 673) in NIS users (Through command)

On the nis master run:
usermod -u
This will change the uid of the user.
Then propogate the change to the NIS domain:
cd /var/yp
make



Dennis Handly
Acclaimed Contributor

Re: How to change user id (672 to 673) in NIS users (Through command)

After you change the user ID, you'll have to do a find and chown to change the ownership to the new ID.
Steven E. Protter
Exalted Contributor

Re: How to change user id (672 to 673) in NIS users (Through command)

Shalom,

change /etc/passwd on the NIS master

ypmake

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Steven Schweda
Honored Contributor

Re: How to change user id (672 to 673) in NIS users (Through command)

yogesh kumar_2
Frequent Advisor

Re: How to change user id (672 to 673) in NIS users (Through command)

Thank u to all. I got the solution