Re: Enable NIS User Account ?????? (146 Views)
Reply
Regular Advisor
Paul Stanard
Posts: 149
Registered: ‎12-17-2003
Message 1 of 5 (146 Views)

Enable NIS User Account ??????

I set up a NIS domain "Alpha" and I was attempting to modify a current user "bwuser" by enabling the NIS domain on the account. I get the error message "Usermod:bwuser-Unix user not found" Do I have to create separate local and NIS accounts or is it possible to enable NIS on the user.

*I used sysman and not command line
Honored Contributor
Johan Brusche
Posts: 627
Registered: ‎01-20-2004
Message 2 of 5 (146 Views)

Re: Enable NIS User Account ??????


What are the results of:

grep bwuser /etc/passwd
and
ypcat passwd | grep bwuser

If you get a nil answer from the 2nd command and a non-zero from the first, you must remove the user from the local /etc/passwd file, and add it's record to the NIS passwd file which is at /var/yp/src/passwd on the master NIS server. When that is done cd to /var/yp and use "make passwd" to update the NIS map's.
Don't see a way to do this via sysman menu.

Johan.

_JB_
Regular Advisor
Paul Stanard
Posts: 149
Registered: ‎12-17-2003
Message 3 of 5 (146 Views)

Re: Enable NIS User Account ??????

Just to be clear...I performed
grep bwuser /etc/passwd
bwuser:....:202:15::/usr/users/bwuser:/bin/sh

ypcat passwd | grep bwuser
no such map in servers domain

So now I remove bwuser entry from /etc/passwd
Place entry in appropriate yp dir
run "make passwd" script

I am working on getting windows services for unix configured. Will I have to copy the new /etc/passwd over to my nfs server? I am assuming so since i would have made changes to it
Honored Contributor
Johan Brusche
Posts: 627
Registered: ‎01-20-2004
Message 4 of 5 (146 Views)

Re: Enable NIS User Account ??????


The output of the ypcat command learns us that you did not configure a passwd file on your NIS master server.
What system is the NIS serverfor the password ? The command "ypwhich -m " will show that.
You should copy sections of local /etc/passwd files with user records to the /var/yp/src/passwd file on the NIS server.
For setting up a NIS master server on a Tru64 UNIX system, first read at least the manpage nis_manual_setup.

NFS server and NIS server are 2 totally separate functionalities. A NIS server is not necessarily a NFS server.

Johan.

_JB_
Honored Contributor
Ralf Puchner
Posts: 1,657
Registered: ‎04-22-2003
Message 5 of 5 (146 Views)

Re: Enable NIS User Account ??????

"ypcat passwd" is a starter to check if the user is part of the NIS configuration. If the local passwd file also contains an entry for the user the setup is wrong.

Be sure the passwd.dir and passwd.pag file is deleted after the changes or the hashed entries will be used.

The whole NIS system is explained within the network guide. Have a look into it, a gui can not handle all operations...


Help() { FirstReadManual(urgently); Go_to_it;; }
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.