?
Solved

user authentication

Posted on 2003-03-20
4
Medium Priority
?
340 Views
Last Modified: 2013-12-27
I need to configure the user from the client get authenticated by NIS rootmaster, to access the resources in the root master. I have installed intel solaris 8 with NIS. and configured as rootmaster.
could any one guide to solve above issue.
0
Comment
Question by:anand2_p
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 2

Expert Comment

by:ryanf
ID: 8195501
#1.  Set domainname on client to the NIS domainname you set.
   
   /usr/bin/domainname <domain>

Add domainname to defaultdomain file, will automatically set domainname when system reboots.

   vi /etc/defaultdomain (One line that has the domainname)

#2. Run YPINIT

   /usr/sbin/ypinit -c

#3. Setup /etc/nsswitch.conf for NIS authentication.

   vi /etc/nsswitch.conf

   passwd:  files nis
   group:   files nis

same for other maps you created.

#4. Start NIS

   /usr/lib/netsvc/yp/ypstart

#5. Verify connection

   /usr/bin/ypwhich
   /usr/bin/ypwhich -m

You should be able to now 'su - <nis user>'

All that is left is to setup security, and any auto_home maps you may have...

-Ryan
     
0
 

Author Comment

by:anand2_p
ID: 8200344
Hi ryan,

thanks for your response.

Acutally i am new to NIS.
I have did the client configration as you said , i have verified the connection by "ypwhich -m". It shows all the server maps. I have created a user in ABC.COM domain,(servername -ALPHA). i have configured the client in BETA.
After created the user in abc.com. when i tried to login from the client BETA, with new user name it showing the following error "unable to access home directory click ok to start a failsafe session or cancel to restart login".
could you tell how solve it. Could you tell me how to confiure auto_home ...,

thanks in advance
0
 
LVL 2

Accepted Solution

by:
ryanf earned 1000 total points
ID: 8205166
Do:

   `ypcat passwd`

See what the home directory for the user you are trying to setup is... There are a couple ways to setup the auto_home... Here is a quick run of it...

For the auto_home stuff, here is a quick stab...  I might miss something, so bear with me...

On NIS Master Server:

In your source directory for NIS (Mine is /var/yp/src, I will  use this as I don't know yours), you will create a file called "auto_home"... Check the Makefile in your /var/yp directory to ensure it has auto_home in the all: section.  

contects of auto_home are like this...

<user>         <hostname>:/export/home/&

then you would run 'make' in your /var/yp dir.  You should see auto_home being pushed...

then run 'ypcat -k auto_home' (or auto.home if auto_home doesn't work) you should see all the entries you just entered.

on the host you will need to make a few changes to ensure it knows where to look for the correct mount...

in the file /etc/auto_master put this entry:

/home           auto_home

PS: (Based on your earlier ypcat the auto_home may actually be auto.home, you will have to verify)

in /etc/auto_home put this

+auto_home

PS: (Or +auto.home if your map is auto.home)

now restart the automounter '/etc/init.d/autofs stop' '/etc/init.d/autofs start'

Make sure NFS is running on both client and server, and the home directory is shared, then you should be able to 'su - <user>' and it should mount the home directory...

NOTE:  Make sure you do not have a /home directory on any of the clients... Autofs will complain or not work at all if you do, it will create the directories it needs... Here is a good link on how to configure this in MUCH more detail... this is a down and dirty process :)

http://publib16.boulder.ibm.com/pseries/en_US/aixbman/nisplus/nis_automount.htm#mqiui258dadaendr

-Ryan
0
 

Author Comment

by:anand2_p
ID: 8215811
Hi ryan,

thanks for your wonderful help and tips. I have as you said it worked.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses
Course of the Month14 days, 16 hours left to enroll

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question