Discussion Locked

Configuring NIS in Linux

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

1)I have configured NIS in linux succssfully.
after configuring the NIS client when I login from client machine, I am able to login but it does not give users' home directory. what I can I do for it.

2)I want to restrict users' from not being able to login from NIS client machine those who does not have their a/c in /etc/passwd file of that machine. What is meaning of +:::::: symbol in /etc/passwd file of NIS client machine.

4 replies

by cpfeiffe

You probably just don't have the home directory properly set up on the client machine.

When the user logs in with NIS it will read the NIS map for password authentication. Look at the user's account in the NIS passwd table and see what the homedirectory is. Then go to the client machine and make sure the home directory exists with the proper permissions.

The +:::::: says to append the NIS password map to the end of the local password file on the client. You really should change thatto +:*:::::. The * will not let + become a valid user unless it can authenticate through NIS. Without the *, + does not need to authenticate to become a valid user in the event that NIS is not running and is a huge security risk!

If you don'twant the users to be able to login on the client, unless the account is on the client machine it doesn't seem like you need to incorporate the passwd table into NIS at all and I'm not sure why you've done that. But in the mean time you would removethe line that reads +:::::: completely on the client machine so it won't search for the user's account within NIS. As long as that line is in there anyone that is in the NIS passwd table can login to the client.

by gregsptl

you will need to set up an automount daemon ( or force each workstation client to mount) your exported homes.

by rsbagga

above answer from cpfeiffer@vsc.teksystems.com

solves my problem to a certain extent for my second question & not for the first one.
The first question says, a user a/c is created at the NIS server, so the home directory for that will automatically be created on that and not on the client machine. Regardless of the fact whenever user logs in fron any machine which is configured as a NIS client for a given NIS domain, user should be getting its home directory. If I need to create the home dir on the client machine then I have to repeat it on all client machines where this user may login. There must a way to do setting on NIS server for giving the home dir without creating on client machine. I hope this will clarify my doubt to you.

This discussion is closed to new replies.