Operating System - HP-UX
1826488 Members
4277 Online
109692 Solutions
New Discussion

Re: Nis problem in hp-ux11.23

 
pramod kumar_2
New Member

Nis problem in hp-ux11.23

Hi,

I have NIS clinet working on hp-ux11.23 and NIS server is solaris 9. When ever i try to su user name getting error. but ypwhic and ypcat command is working properly
eg :{veahpbld}/> su aswami
Segmentation fault
{veahpbld}/> ypcat passwd |grep -i aswami
aswami:KjoUOqMRUCjOE:2122:101:aswami:/lhome/aswami:/usr/bin/bash

{veahpbld}/> ypwhich
vea-alpha.vxindia.veritas.com.

I can able to login from other platforms using same user id and NIS server.

8 REPLIES 8
Dennis Handly
Acclaimed Contributor

Re: Nis problem in hp-ux11.23

>Segmentation fault

Are you running /usr/bin/su?
john123
Trusted Contributor

Re: Nis problem in hp-ux11.23

Hi..
Check whether you are able to login directly to the server..??

John
pramod kumar_2
New Member

Re: Nis problem in hp-ux11.23

yes

{veahpbld}/> /usr/bin/su aswami
Segmentation fault

pramod kumar_2
New Member

Re: Nis problem in hp-ux11.23

Directly I am able to login to NIS server and even from AIX, Solaris and Linux nis clients I can. Only the problem with hp-ux.
#ypcat passwd |grep -i username
it is showing correct entry.
# ypwhich -m is also showing proper out put.
john123
Trusted Contributor

Re: Nis problem in hp-ux11.23

Your NIS client has not properly binded to your NIS server..

Is Your NIS server resides in the same subnet..?

reagrds
John
pramod kumar_2
New Member

Re: Nis problem in hp-ux11.23

Both are in same subnet, when i stop and start the nis.client getting following messages

{veahpbld}/> /sbin/init.d/nis.client stop
stopping ypbind
stopping keyserv
{veahpbld}/> /sbin/init.d/nis.client start
starting NIS CLIENT networking
starting up the rpcbind
rpcbind already started, using pid: 791
domainname vea-alpha
starting up the Network Information Service
starting up the ypbind daemon
ypbind will not use the server list available in the file /var/yp/binding//ypservers for binding purpose. Also if ypbind is invoked with -broadcast option, then -broadcast option is ignored.
/usr/lib/netsvc/yp/ypbind -ypset
calling ypset with 10.217.44.100
Checking NIS binding.
Bound to NIS server using domain vea-alpha
starting up the keyserv daemon
/usr/sbin/keyserv

Thanks
john123
Trusted Contributor

Re: Nis problem in hp-ux11.23

Hows ur nsswitch.conf file.. is that correct.?
pramod kumar_2
New Member

Re: Nis problem in hp-ux11.23

passwd: files nis
group: files nis
hosts: nis [NOTFOUND=return] files
ipnodes: files
networks: nis [NOTFOUND=return] files
protocols: nis [NOTFOUND=return] files
rpc: nis [NOTFOUND=return] files
publickey: nis [NOTFOUND=return] files
netgroup: nis [NOTFOUND=return] files
automount: files nis
aliases: files nis
services: files nis