March 29, 2024, 12:52:44 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: Graphical NIS  (Read 4003 times)

Offline gargsachin_ait

  • Linux Noob !
  • *
  • Posts: 27
Graphical NIS
« on: May 22, 2009, 05:02:09 PM »
Hey all
M using RHEL5. I configured NIS server. And on client side m able to connect on login shell by NIS user. But i am unable to login in  GUI mode. So please help me to login graphically.
Thanks

Offline Puja

  • Linux Noob !
  • *
  • Posts: 9
Re: Graphical NIS
« Reply #1 on: May 25, 2009, 06:12:00 PM »
Hi...

for login through gui you require users home directory.
share your server home directory thru. nfs.
and mount /home directory autofs utility in linux.

Better option you create your remote user directory on different location. ex. /rhome/
use command useradd -d /rhome/test test
it will create test user home directory on /rhome directory. and share /rhome directory thru nfs.

on client machine configuration
1) edit auto.master
enter below test on bottom of this file.
/rhome /etc/auto.misc
2) edit /etc/auto.misc
add line to bottom of this file.
* -rw,soft,intr 192.168.1.1(ip of your nfs & nis server)/rhome/&

restart autofs service.
above steps will mount your /rhome dir. on client machines /rhome/ directory.

also you need to change client machine authentication settings.
use authconfig-tui utility click to nis provide nis server name and ip address.
then restart ypbind service. this service will map your nis server login information. ( passwd group files etc)

after that try to login with test user it will login through GUIā€¦

thanks.

Offline gargsachin_ait

  • Linux Noob !
  • *
  • Posts: 27
Re: Graphical NIS
« Reply #2 on: May 28, 2009, 07:06:25 AM »
Hey puja i m still unable to login graphically but i m enable to login in shell..............
Please help

Offline gauravbajaj

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 658
Re: Graphical NIS
« Reply #3 on: May 31, 2009, 12:04:15 PM »
I haven't got a chance to setup this before:

Check this

https://bugzilla.redhat.com/show_bug.cgi?id=102402

Offline Puja

  • Linux Noob !
  • *
  • Posts: 9
Re: Graphical NIS
« Reply #4 on: June 01, 2009, 09:00:28 AM »
Hi,

Try the below method,its working for me.Also make sure that you have mounted the home directory properly.If its not mounted then it will not work.

1. System->Admin->Authentication->Enable NIS support->
NIS domain (Eg: notexample)
Server (server1.example.com)

2.service ypbind restart
  chkconfig ypbind on

3.vim /etc/auto.master
 # Type the below sentence after /net
/home/guests   /etc/auto.home

:wq

4.vim /etc/auto.home
  *  -rw,intr,soft  server1:/home/guests/&

:wq

5.service autofs restart
  chkconfig autofs on

6.Now login as guest user which is located under /home/guests
Eg:guest100
su - guest100

guest100>startx -- :2
#2 is the terminal or your station number.The above line will help you login in graphical mode with username as guest100

With Regards,
Puja