LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-24-2011, 12:46 PM   #1
piyusharora420
Member
 
Registered: Nov 2010
Posts: 93

Rep: Reputation: 0
Question 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.
 
Old 11-24-2011, 12:56 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 11-25-2011, 02:05 AM   #3
piyusharora420
Member
 
Registered: Nov 2010
Posts: 93

Original Poster
Rep: Reputation: 0
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.
 
Old 11-25-2011, 03:30 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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?
 
Old 11-25-2011, 05:11 AM   #5
piyusharora420
Member
 
Registered: Nov 2010
Posts: 93

Original Poster
Rep: Reputation: 0
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.
 
Old 11-25-2011, 05:52 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 11-26-2011, 01:48 AM   #7
piyusharora420
Member
 
Registered: Nov 2010
Posts: 93

Original Poster
Rep: Reputation: 0
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?
 
Old 11-26-2011, 01:49 AM   #8
piyusharora420
Member
 
Registered: Nov 2010
Posts: 93

Original Poster
Rep: Reputation: 0
Quote:
right so the home directory is very clearly incorrect. no?
Yes, it should be /rhome/nis1
 
Old 11-26-2011, 02:02 AM   #9
piyusharora420
Member
 
Registered: Nov 2010
Posts: 93

Original Poster
Rep: Reputation: 0
Question

Also, when I log in with nis1 user from server side, I get bash-3.2$ instead of user's name.
 
Old 11-26-2011, 02:53 AM   #10
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 11-26-2011, 03:01 AM   #11
piyusharora420
Member
 
Registered: Nov 2010
Posts: 93

Original Poster
Rep: Reputation: 0
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.
 
Old 11-26-2011, 03:12 AM   #12
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
OK, so.. it works now, right?
 
Old 11-26-2011, 03:51 AM   #13
piyusharora420
Member
 
Registered: Nov 2010
Posts: 93

Original Poster
Rep: Reputation: 0
No, it isnt working. I get bash-3.2$, when log in from both server and client.
 
Old 11-26-2011, 04:57 AM   #14
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
sounds like a permissions issue on the home directory, or it doesn't exist, or the skel files haven't been copied to it.
 
Old 11-26-2011, 07:15 AM   #15
piyusharora420
Member
 
Registered: Nov 2010
Posts: 93

Original Poster
Rep: Reputation: 0
Thanks alot kewpie. You are a genius. Skel files were missing. It is working fine now. Thank again.
 
  


Reply

Tags
nis



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
fail to log in on NIS client Langton Linux - Newbie 1 05-12-2011 09:25 AM
NIS failed for one user on one NIS client - strange problem resolved catbird Linux - Networking 1 10-05-2009 11:00 AM
Client side NIS login problem kazador Linux - Newbie 2 06-26-2006 04:39 PM
nis client machine can't log in using nis username preetam Linux - Networking 0 02-09-2004 04:40 PM
help with client side NFS-firewall setup and server side NIS-firewall setup niverson Linux - Networking 3 02-02-2004 08:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration