Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1972
  • Last Modified:

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

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
Donnaa5dcp
Asked:
Donnaa5dcp
  • 4
  • 4
1 Solution
 
jlevieCommented:
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
 
Donnaa5dcpProject managerAuthor Commented:
will try this tomorrow and accept answer if it works!
Thanks
0
 
Donnaa5dcpProject managerAuthor Commented:
Im sorry it still doesnt work....Im unsure how to create nis maps altogether really
Can anyone explain!
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
jlevieCommented:
I can look at one of my Solaris NIS servers tomorrow and tell you exactly what I did.
0
 
jlevieCommented:
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
 
Donnaa5dcpProject managerAuthor Commented:
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
 
jlevieCommented:
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
 
Donnaa5dcpProject managerAuthor Commented:
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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now