[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[SOLVED]Re: nis don´t work properly



On Mon, 3 May 1999, Jens B. Jorgensen wrote:


> 
> The thing is to see if you can get back correct data from 'ypmatch pow shadow.byname'.
> If this works then your server is doing its job. Do you have an entry in
> /etc/nsswitch.conf with:
> 
> shadow: files, nis
> 
> in addition to the passwd: entry?
The entrys in nsswitch.cnonf said:
passwd:         compat
group:          compat
shadow:         compat
wich shold do the same, but I changed that, just in case, but that didn't
help. I was able to get the correct date from 'ypmatch pow shadow.byname',
but that must have been because I changed the password with yppasswd.
If i tried 'ypmatch otheruser shadow.byname' ypmatch told me that there
weren't any key like that, so my niserver wasn't alright.

 I tok a look in the Make-file (in /var/yp" and by a coincidence I found
an entry like this:
 # If you don't want some of these maps built, feel free to comment
# them out from this list.

all:    passwd group hosts networks protocols rpc services netgrp \
        netid ypservers #shadow publickey mail netid ethers bootparams
#       amd.home auto.master auto.home

As you can see shadow was comment out, I changed that and after a `make`
evrything was as it should, exept for one thing, evry user can do a `ypcat
shadow`and get the whole shadowfile and that make shadowpasswords useless,
but I can live with that in my two-computerLAN.

Thanks a lot for your help with this, if it wasn't for your help this
problem would have taken me "years" to solve.


-- 
  And I know that there  are people in this
  world who do not love their fellow human
  beings and I hate people like that.
Contact me? Try pow@big.du.se : sy96pow@blg.du.se or
visit http://www.big.du.se/~pow/contact_page.html



Reply to: