LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Not able to log in as nis user from client side. (http://www.linuxquestions.org/questions/linux-server-73/not-able-to-log-in-as-nis-user-from-client-side-915363/)

piyusharora420 11-24-2011 01:46 PM

Not able to log in as nis user from client side.
 
Hi everyone,

Whenver, I try to log in as a nis user, I get the following message:

Code:

Your home directory is listed as:
'/rhome'
but it does not appear to exist. Do you want to log in with the /(root) as your home directory?

It is unlikely anything will work unless you use a failsafe session.

/rhome is the home directory for nis1 user. On client side it should be logged in to /data/nis directory. I have already configured auto.master and auto.misc files. After logging as root, I can log in as nis1 (nis user). But, I need to change directory manually. After changing directory to /data/nis, everything works fine.

Thanks in advance.

acid_kewpie 11-24-2011 01:56 PM

if that's the users home directory then it should exist. if it should be somewhere else, then you should change it... am I missing something? if you want the directory to be automatically created, then you can use pam_mkhomedir but that's not apparently what you're asking.

piyusharora420 11-25-2011 03:05 AM

Thanks for the prompt reply. I think you did not get me. I have made some changes also. Let me explain in detail:

*I have created a nis1 user with directory /rhome/nis1 on nis server.
* I have created a permanent mount point for nfs at /rhome/nis1 on client side. Nfs mount is working perfect. But, nis1 user is not able to log in to GUI interface also not in runlevel 3.

*When I log in as root on client side, then I can log in as nis1 user. But, I get bash$ instead of user's name. Also directory does not change to /rhome/nis1.

Please let me know what I have done wrong.

acid_kewpie 11-25-2011 04:30 AM

so on the client side, what does "getent passwd nis1" say? Can you then do an ls -l of the /rhome location as well to show these things marrying up?

piyusharora420 11-25-2011 06:11 AM

It says:
Quote:

nis1:$1$IeMOGRCa$vfKyuq3jIGyKRPpWNglwJ0:762:762::/rhome:/bin/bash
sync is perfect. whenever, I create a new file at client side, it also appear at server side.

acid_kewpie 11-25-2011 06:52 AM

right so the home directory is very clearly incorrect. no?

and why are you passing shadow data with NIS? That's awful. don't do that. Authenticate with something else instead, e.g. kerberos or ldap.

In fact, just ditch NIS altogether, that'd be my first step in getting this working.

piyusharora420 11-26-2011 02:48 AM

Quote:

and why are you passing shadow data with NIS? That's awful. don't do that
How to get rid off it? I want to make it working. Could you please let me know how to proceed further?

piyusharora420 11-26-2011 02:49 AM

Quote:

right so the home directory is very clearly incorrect. no?
Yes, it should be /rhome/nis1

piyusharora420 11-26-2011 03:02 AM

Also, when I log in with nis1 user from server side, I get bash-3.2$ instead of user's name.

acid_kewpie 11-26-2011 03:53 AM

so... have you changed their home directory yet???

is it worth backing up here and asking why you're bothering with NIS anyway? NIS is pretty much obsolete, and you'll be thanked by just about no one if you were to use it in a production environment. It's a useful teaching tool these days, but very rarely anything more.

piyusharora420 11-26-2011 04:01 AM

Quote:

so... have you changed their home directory yet???
It was /rhome and I changed it to /rhome/nis1

Actually, I want to appear for RHCE exam. That is why I wish to learn it.

acid_kewpie 11-26-2011 04:12 AM

OK, so.. it works now, right?

piyusharora420 11-26-2011 04:51 AM

No, it isnt working. I get bash-3.2$, when log in from both server and client.

acid_kewpie 11-26-2011 05:57 AM

sounds like a permissions issue on the home directory, or it doesn't exist, or the skel files haven't been copied to it.

piyusharora420 11-26-2011 08:15 AM

Thanks alot kewpie. You are a genius. Skel files were missing. It is working fine now. Thank again.


All times are GMT -5. The time now is 05:27 PM.