Solved

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

Posted on 2004-09-23
8
1,742 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
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ovirt 3.6 guest VM support oracle solaris 4 75
unix scripting question 1 96
dot directory in FreeBSD??? 4 80
Solaris 10.  Nmap installation fails 2 59
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

778 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