1834447 Members
2266 Online
110067 Solutions
New Discussion

Re: NIS Problems

 
Ramesh_27
Occasional Advisor

NIS Problems

Hi

I have a NIS Master server which is running HP-UX 11.00. When ever a user tries to login to that server it stops for a while after taking the password.

login: rajanr
Password:
Unable to change directory to "/home/rajanr"
Logging in with home = "/".
Please wait...checking for disk quotas

Its stoppping without giving the shell prompt for 3 or 4 minutes.

Any help will be of great help.

11 REPLIES 11
Robert-Jan Goossens
Honored Contributor

Re: NIS Problems

Hi Ramesh,

do you use a NFS home directory server ?

Robert-Jan
Ramesh_27
Occasional Advisor

Re: NIS Problems

Yes...NFS Home server is also the same server but the home directory gets autmounted in the same box itself. Earlier it used to work fine even though it never logs me in to the home directory. But now it is getting struck after saying "Checking for disk qouta"
Robert-Jan Goossens
Honored Contributor

Re: NIS Problems

do the users have a HISTORY file in there $HOMEDIR ?

if so, try to change it to /tmp/
Ramesh_27
Occasional Advisor

Re: NIS Problems

How to change the User's history file to /tmp
Robert-Jan Goossens
Honored Contributor

Re: NIS Problems

go to a homedir of the user, and edit his .profile.

change
HISTFILE=${HOME}/.sh_history_`who am i|awk '{ print $1}'`
to
HISTFILE=/tmp/.sh_history_`who am i|awk '{ print $1}'`

# su - user
and check if you still have the same problems.
Victor Fridyev
Honored Contributor

Re: NIS Problems

Hi,

Try to do the following:
/sbin/init.d/nis.client stop
/sbin/init.d/nis.server stop
Check why your NFS client doesn't work. When NIS is stopped, it's much faster. Find and update in /etc/rc.config.d/namesvrs the following:
YPBIND_OPTIONS="-ypset"
YPSET_ADDR="IP of the server"
Run:
/sbin/init.d/nis.server start
/sbin/init.d/nis.client start

Read syslog.
BTW, in order to define history file, put into .profile
export HISTFILE=/tmp/$LOGNAME.hst

Entities are not to be multiplied beyond necessity - RTFM
Ramesh_27
Occasional Advisor

Re: NIS Problems

I did all that.. But the same way it hangs for few minutes in " Checking for disk qouta"
Victor Fridyev
Honored Contributor

Re: NIS Problems

Hi,

Could you temporarily change homedir of the user to a local directory and after to a directory located on another NFS ? Does this resolve the problem ?

Could you run when connecting
tail -f /var/adm/syslog/syslog.log

What messages do you see ?

HTH
Entities are not to be multiplied beyond necessity - RTFM
Robert-Jan Goossens
Honored Contributor

Re: NIS Problems

Hi Ramesh,

Few thinks you could check, just to eliminate.

from the clients.
# nslookup server_name
# nslookup server_ipaddress

from the server same as above to the client.

Try to mount a nfs filesystem (cdrom) from the server to client, and check syslog for errors.

Regards,
Robert-Jan
Suresh Patoria
Super Advisor

Re: NIS Problems

Hi,

configure the automount or nfs mount on client side. You need to mount home directory of ur users.
otherwise users will not get the home directory.

Thanx
Ramesh_27
Occasional Advisor

Re: NIS Problems

Still the same thing happens in the client side.