Dear gentleman, i am trying to get nis to build their maps from files located in another directory than "/etc".
So, my Makefile (inside /var/yp/`domainname`) has the following lines : YPDBDIR=/var/yp DIR=/asd/etc AMDDIR=/asd/etc/amd NOPUSH="" UNSECURE= USEDNS=-b So my ideia is to grab as input, passwd and group files from "/asd/etc"; all others are empty. My group file inside "/asd/etc" is: its:*:1000: asd:*:1001:sioux dba:*:1002:sioux wbx:*:1003: alg:*:1004:sioux djb:*:1005: nofiles:*:1006: qmail:*:1007: ftp:*:1008: ord:*:2000: adc:*:2001: bod:*:2002: frn:*:2003: And my master.passwd is: sioux:$2a$08$B8PLPgdw18I.TlnZC8RnZezg1Ed8gQL8WU/4rpxdyGdOk/PO/9Ude:1000:1000:mojave:0:0::/home/sioux:/bin/sh mysql:*:1001:1002:mojave:0:0::/home/mysql:/usr/bin/false oldap:*:1002:1002:mojave:0:0::/home/oldap:/usr/bin/false dnscache:*:1003:1005:mojave:0:0::/home/dnscache:/usr/bin/false dnslog:*:1004:1005:mojave:0:0::/home/dnslog:/usr/bin/false tinydns:*:1005:1005:mojave:0:0::/home/tinydns:/usr/bin/false ftp:*:1006:1008:mojave:0:0::/asd/var/ftp:/sbin/nologin alias:*:1007:1006:mojave:0:0::/var/qmail/alias:/usr/bin/true qmaild:*:1008:1006:mojave:0:0::/var/qmail:/usr/bin/true qmaill:*:1009:1006:mojave:0:0::/var/qmail:/usr/bin/true qmailp:*:1010:1006:mojave:0:0::/var/qmail:/usr/bin/true qmailq:*:1011:1007:mojave:0:0::/var/qmail:/usr/bin/true qmailr:*:1012:1007:mojave:0:0::/var/qmail:/usr/bin/true qmails:*:1013:1007:mojave:0:0::/var/qmail:/usr/bin/true Then i issued : # pwd_mkdb -d /asd/etc -s master.passwd # cd /var/yp/`domainname` # make Everything was built ok! But, the problem is the following: I cannot login as user sioux using the password i setted for it. But if i try the login as user sioux using a empty password ("") the authentication procedure passes. I can't understand what i am doing wrong? thanks a lot for your time and cooperation. Best regards.