Solved

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

Posted on 2004-09-23
8
1,758 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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
AIX print queues constantly going down 11 548
EMC VNX  storage pool  Vs  raid group  question 3 137
how to check for shares on HP-UX 1 64
Shell Script on AIX 7 112
Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
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 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…
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…

831 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