Link to home
Start Free TrialLog in
Avatar of Yossishushan
Yossishushan

asked on

connect SLES9 NIS client to SOLARIS NIS server

Hello

I have a NIS server on Solaris 8 and NIS client with the same operating system.
i want to add SLES9  to the nis server. so i work with YAST when i try to connect him to NIS server he found NIS server and tell me the address of the NIS server he found but when i click finish the NIS service start and i get error NIS server not found  
it is posseble to connect linux machine (NIS client) to SUN (NIS server) ?
Avatar of wesly_chen
wesly_chen
Flag of United States of America image

> it is posseble to connect linux machine (NIS client) to SUN (NIS server) ?
It's doable and I've done this for 100+ Linux NIS client with Solaris NIS server.

> finish the NIS service start and i get error NIS server not found  
1. Edit
/etc/yp.conf
------
domain  <your NIS domain name>  server <your NIS server IP>
-------

2. Check /etc/nsswitch.conf  for "nis" in passwd, shadow, group, hosts.....items

3. Make sure you can pint NIS server
ping <your NIS server IP>
Otherwise check the routing table
netstat -rn

4. Make sure no firewall block the NIS.
/etc/init.d/iptables stop

5. Restart the ypbind
/etc/init.d/ypbind restart

Regards,

Wesly

Avatar of Yossishushan
Yossishushan

ASKER

Thank you ...you so right  this is  FW problem...thanks
now i have another problem the users use tcsh shell when they login they get error   /sbin/tcsh: No such file or directory.
tcsh on suse found on /bin so i copy it to sbin is that right to do this ?
 
Make a soft link instead of hard copy.
ln -s /bin/tcsh  /sbin/tcsh
thank you again your suggestion help to solve the error /sbin/tcsh: No such file or directory...thanks
but now i have another problem ): ...sorry : )
the users need to connect remotly via exceed when they try to login they get error "x session login for username is disable" but i know how to solve the problem ... ( :
when i change the file /etc/passwd for the user that try to loging instead of tcsh shell i change it to bash shell and the user succeed to login without any error.
i think that this is occur because the the tcsh link because with bash its working.

Thanks


 
ASKER CERTIFIED SOLUTION
Avatar of wesly_chen
wesly_chen
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank You  so much i changed the /etc/passwd file to /bin/tcsh and it's work now ..... thanks agian.