1825775 Members
1981 Online
109687 Solutions
New Discussion

How to create a user NIS

 
SOLVED
Go to solution
Guillermo Girón
Occasional Contributor

How to create a user NIS

I registered to the user NIS with the SAM, but at the time of entering with that user, it sends the following message to me

"Unable to change to your home directory, Do you want log in anyway (using / instead)? "

At the time of pressing the OK button, it does not allow to enter.

My question, how it could create users NIS, correctly...

Please Help Me

Thanks
5 REPLIES 5
A. Clay Stephenson
Acclaimed Contributor

Re: How to create a user NIS

This is a very typical "problem" with NIS users because generally, the users home directory is not on the NIS master server. In the typical case, the user home directory is automounted using maps maintained by NIS so that no matter on which host the user logs in, he is connected to hist home directory on a machine which might be remotely located. You need to script a solution to create a user's home directory either on all the nodes where he might login or create the directory on one target host and update the automounter maps.
If it ain't broke, I can fix that.
Robert-Jan Goossens
Honored Contributor

Re: How to create a user NIS

As Clay above already mentioned, I don't know if you use auto_home ( nfs mounted homedirs ). If you don't, just add the local home directory to the users entry in the /etc/passwd.

+user:::::/home/user

I can't rememner how many :'s you need check the settings for other users in the /etc/passwd.

Hope this helps,
Robert-Jan
Guillermo Girón
Occasional Contributor

Re: How to create a user NIS

In the path /var/yp/src, I have a passwd file

That it has content:

This user is correct, I don't have a problem
celayaju::42074:42002:Juan Celaya:/home/qrdss01/celayaju:/usr/bin/ksh

But with this user I have a problem
calzaday::42092:42002:Ayme Calzada:/home/qrdss01/calzaday:/usr/bin/ksh

What instruction I must run to finish creating it?
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: How to create a user NIS

At a minimum:
mkdir -p /home/qrdss01/calzaday
chown calzaday /home/qrdss01/calzaday

You probably should also copy a .profile to this directory.

You could also run the useradd comand to do these steps for you. Man useradd for details.
If it ain't broke, I can fix that.
Guillermo Girón
Occasional Contributor

Re: How to create a user NIS

thank you very much