Operating System - HP-UX
1834665 Members
2222 Online
110069 Solutions
New Discussion

Re: NIS/Automount--Weird problem

 
Dan Alexander
Frequent Advisor

NIS/Automount--Weird problem

Here's one that is really getting to me...

I have a system that I log into, and it is supposed to auto-mount my home dir from another system. It does just that. However,once my home dir is NFS mounted, I CANNOT login. At the login prompt I type my username, and passwd, and it justs immediately returns to the "login:" prompt. It NEVER says "Login incorrect" as you would suspect. If I modify my /etc/auto.home file to mount a LOCAL home dir for me, (I created one for troubleshooting) it works like a charm. I can login fine. Only when it automounts from the remote system (NFS) do I see this problem. We use NIS as well, and that seems to be fine. Anyone seen this before? Any clue as to the problem??

This is a system that, unfortunately, cannot be shutdown freely. So I was wondering if anyone knew of a workaround to this without rebooting!

Thanks in Advance...
dAn

5 REPLIES 5
Timo Ruiter
Advisor

Re: NIS/Automount--Weird problem

It seems that the login process dies immediately after you've supplied your password...
I suppose nothing shows in the syslog of your local machine or the remote NIS server?

Can you mount any other NFS filesystems (after logging in using your local directory)?
What system is it anyway?
Confucius say: he who runs through forrest in straight line will hit tree
Donald Kok
Respected Contributor

Re: NIS/Automount--Weird problem

maybe the .profile of the homedir on the NFS-dir has some strange commands. (like exit).
My systems are 100% Murphy Compliant. Guaranteed!!!
John Downs_1
Frequent Advisor

Re: NIS/Automount--Weird problem



Hi I've had this problem. Make sure the shell specified in the passwd file for your account is in the /etc/shells file on machine in question. Also make sure that the machine in question has that shell(program) in the directory referenced in the passwd file.

-john
I'd rather be fly fishing for trout!
Dan Alexander
Frequent Advisor

Re: NIS/Automount--Weird problem

Well...let me answer a few of the questions you guys asked!

Timo - nothin in syslog. login proc is not dying as far as I can see. I can log in as root, or another user,.
NIS is working correctly too.
I can mount other NFS fs's..
System is running 11.0 w/ latest patches.

Donald - My p.profile is fine. I can log into any of my 50 other systems just fine!

John- wouldn't be /etc/shells. I can log in when my home dir is NOT automounting, when I use a local filesystem that I created. So that wouldn't be it either!

I finally was able to log in, and have my home dir auotmounted (NFS), if I opened up the permissions on my home dir on the system I am mounting from (my home system).??? weird. Why would permissions have anything to do with it? I can log into all my other systems w/o a problem. my perms were 700, if they are opened fully to 777, bam, I can log in, and i'm automounted.
Weird...
A colleague of mine can log in with his permissions locked down without a prob. But he's being automounted from another server.

Still grinding this one...

I'll give you guys points for even responding! Thanks for the ideas...

DAn
Judy Traynor
Valued Contributor

Re: NIS/Automount--Weird problem

check /etc/exports on the fileserver that is hosting your home area, and verify that the filesystems are being exported properly, and the ip address of said fileserver is known to the client

(files /etc/resolv.conf - dns
/etc/nsswitch.conf - nis
/etc/hosts
/etc/hosts.equiv
/etc/exports

)

It sounds like you are close.
Sail With the Wind