Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i have this auto.master:

/data         yp:my_nis_map

on a particular linux workstation, i like to add a /data/special that is not present in my_nis_map.

/data         yp:my_nis_map
/data/special filer:/path/to/special

but this fails ? How can i concatenate two entries ? I can't modify the NIS or the NFS exports.


share|improve this question

The maps cannot overlap. You could mount filer:/path/to/special somewhere else an make a symlink from /data/special to it. That symlink will be visible to all clients however.

A cleaner though more involved approach would be to use an executable map. The map script would be something like:


if [ "$KEY" = "/data/special" ]; then
  echo " filer:/path/to/special"
  exit 0

ypcat -k my_nis_map | egrep "^$KEY\s+" | sed "s/^$KEY//"
exit 0

(Warning: Script typed off the top of my head. NIS map musn't use \ for line continuation. I do not have access to NIS. May contain peanuts.)

Edit: gives an example of an executable map.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.