Solved

NIS - client server maps Cannot bind on startup mail.aliases

Posted on 2004-09-23
8
1,686 Views
Last Modified: 2013-12-27
Hi
Ive configured a NIS server and NIS client on a Solaris 2.6 system.  All configuration process is good in my knowledge, and also the system is working with NIS. However when I boot into NIS on the client disk there is the following error message:

" NOQUEUE: SYSERR(root): cannot bind to map.aliases in domain abc.com (domainname): no such map in server's domain: Bad file number."

I can still log in. On the client disk there is an entry in the /var/yp/nicknames file for the map.aliases, when I type ypcat aliases the response is "no such map in servers domain"
I go the the Server, and the mail.aliases map is missing from /var/yp/domainname.
How do I create a map? What do I write in it?

Thanks in advance
 

Thanks in advance
0
Comment
Question by:Donnaa5dcp
  • 4
  • 4
8 Comments
 
LVL 40

Accepted Solution

by:
jlevie earned 125 total points
ID: 12135470
If you followed the usual practice of collecting all of the files that are the basis of the NIS maps (passwd, shadow, group, services, etc.) in one place and built the maps from them it is simply a matter of placing an aliases file (it can be an empty file) in that area and making sure that the Makefile includes the aliases map.
0
 
LVL 5

Author Comment

by:Donnaa5dcp
ID: 12136586
will try this tomorrow and accept answer if it works!
Thanks
0
 
LVL 5

Author Comment

by:Donnaa5dcp
ID: 12155762
Im sorry it still doesnt work....Im unsure how to create nis maps altogether really
Can anyone explain!
0
 
LVL 40

Expert Comment

by:jlevie
ID: 12155836
I can look at one of my Solaris NIS servers tomorrow and tell you exactly what I did.
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 40

Expert Comment

by:jlevie
ID: 12162312
Okay... I place all of the files that I use to build NIS maps in /etc/yp. So I edit /var/yp/Makefile and set:

DIR =/etc/yp
PWDIR =/etc/yp
ALIASES = /etc/yp/aliases

The maps that will be built are determined by what "all:" includes. Mine looks like:

all: passwd group hosts ipnodes ethers networks rpc services protocols \
        netgroup bootparams aliases publickey netid netmasks c2secure \
        timezone auto.master auto.home \
        auth.attr exec.attr prof.attr user.attr audit.user

Then I placed the aliases that I wanted in the NIS map in /etc/yp/aliases and did a 'make all'
0
 
LVL 5

Author Comment

by:Donnaa5dcp
ID: 12163411
What it is, is that the makefile at aliases.time contains a command like:
@  /usr/.../..../ -bi -oA $(YPDBDIR)/$(DOM)/mail.aliases
and it stops there with the error message NOQUEUE: SYSERR(root): cannot bind to map.aliases in domain abc.com (domainname): no such map in server's domain: Bad file number
When i navigate the the directory (as above) $(YPDBDIR)/$(DOM)/mail.aliases, there is an aliases file there but the error newaliases: no such file.....

any help, Im writing this from memory from work today

Donna
0
 
LVL 40

Expert Comment

by:jlevie
ID: 12166073
Are you on the NIS server?

And on the NIS server does the ALIASES definition in /var/yp/Makefile point to a valid aliases file? And is so what happens if you do:

cd /var/yp
make aliases

0
 
LVL 5

Author Comment

by:Donnaa5dcp
ID: 12189693
The answer was in the nsswitch.conf file! In the line aliases, make sure it reads "files". It worked for me anyway
Thanks for your help jlevie
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
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…

758 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now