question about .forward and NIS aliases map

I admit freely that I'm not a NIS guru, but I have a strange situation here and I'm not sure if it's a works as designed or if there's something I'm missing

just a few little things to make things clear from the getgo

/etc/nsswitch.conf

snip

aliases:files nis

root@mymachine:/# ypcat -k aliases |egrep "^root"

root someuser@mydomain.com

root@mymachine:/#cat /.forward

<my userid either on this machine or elsewhere>

root@mymachine:/#egrep "^root" /etc/aliases

<nothing>

ok, hopefully that's a good level set, and just to clarify, yes, ypbind is running....

If I create a /.forward file for the root user in it's home directory, with <some other user id or whatever> in it, and send mail to root, it does not go to the alias in the .forward but rather to the NIS aliases entry.

If I create an entry in /etc/mail/aliases, newaliases and then send mail,it goes to that entry and not the entry in NIS aliases.

Is this expected behavior, for .forward to be ignored on a machine where nsswitch has both files and nis set? Is there a change to the nsswitch.conf file that will allow the order to be

/etc/mail/aliases

.forward

NIS aliases

just wondering...

thanks!

[1310 byte] By [jeffrey.s] at [2007-11-25 23:25:04]
# 1

HI,

I'm neither an NIS guru !

I think from the scenario which U've mentioned autofs is implemented with automount maps direct and indirecr maps , look for the auto_master file which has got the mount points and other files in the system.If users home directory are mounted using this automount from a remote system there is an option in those config file which tells to look for the local files are else only NIS maps "+" look for this plus sign in those files. Check this out this could also be an reason.

Cheers

machiunixGILLI at 2007-7-5 18:11:58 > top of Java-index,General,Talk to the Sysop...
# 2
um, ok, now I'm really confused...how does automount play a part in this? just wondering as it's not running :)
jeffreys at 2007-7-5 18:11:58 > top of Java-index,General,Talk to the Sysop...
# 3
I wonder if you thought the entries I listed were the only entries in the files...I only included the relevant entries, I hope that resolves some of the confusion ?
jeffreys at 2007-7-5 18:11:58 > top of Java-index,General,Talk to the Sysop...