Operating System - HP-UX
1834236 Members
2288 Online
110066 Solutions
New Discussion

Re: how can i create a new user on NIS client

 
praveen..
Super Advisor

how can i create a new user on NIS client

I need a test UserID and a test User Group created on my server i.e. NIS client for some application testing.

suppose my user name is test_user & group name is test_group.

how i will create this?

Please suggest
thanks
praveen
2 REPLIES 2
A. Clay Stephenson
Acclaimed Contributor

Re: how can i create a new user on NIS client

Your question indicates the nature of your problem. Only a local user can be created on an NIS client and it is done just as any other user is created.

If on the other hand what you really mean is how do I create an NIS user then the answer is that you create the user on the NIS master server by inserting the user in the passwd source file. It might be /etc/passwd on your NIS master but that entirely depends upon your setup. It's also very common to have the users' home directories under the control of the automounter so you also have to update the automount map and create a home directory on the target machine. You then have to update the NIS maps by doing a ypmake. Normally, you change the various source files and then simply issue a 'make' command from the /var/yp directory but all of this depends upon how YOUR NIS system is setup.

You still seem to want cookie-cutter answers to questions that just don't have them. You really, really need to get some NIS materials and study them.
If it ain't broke, I can fix that.
Mark Ellzey
Valued Contributor

Re: how can i create a new user on NIS client

Praveen,

In addition to what Mr. Stevenson said, I would refrain from using 'unusual' characters in user ids. While an underscore (_) is premissible, under the rule of passwd entries, I would avoid it. From man passwd(1):
" WARNINGS
Avoid password characters which have special meaning to the tty driver, such as # (erase) and @ (kill). You may not be able to login with these characters."

While I realize that this has to do with the password itself, it's my feeling that this should also extend to the userid as well.

There is a valuable resource available on the HP docs website:

http://docs.hp.com/en/5991-1154/index.html

Read and learn!

Regards,
Mark