Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


user authentication

Posted on 2003-03-20
Medium Priority
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.
Question by:anand2_p
  • 2
  • 2

Expert Comment

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


#5. Verify connection

   /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...


Author Comment

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

Accepted Solution

ryanf earned 1000 total points
ID: 8205166

   `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


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 :)



Author Comment

ID: 8215811
Hi ryan,

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

Featured Post

Technology Partners: 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

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

571 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