?
Solved

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

Posted on 2004-09-23
8
Medium Priority
?
1,914 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
[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
  • 4
  • 4
8 Comments
 
LVL 40

Accepted Solution

by:
jlevie earned 500 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
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 
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

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

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
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…
Suggested Courses

770 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