Subject: Re: Problems changing NIS password as root
To: None <netbsd-help@netbsd.org>
From: Martti Kuparinen <martti.kuparinen@iki.fi>
List: netbsd-help
Date: 12/11/2002 21:28:18
On Wed, 11 Dec 2002, Eric Fox wrote:
> I was under the impression that root on the NIS Master could change
> user's passwords without using NIS.
I guess this is true if the NIS password table == /etc/master.passwd.
In my case I have a separate password database in /var/yp/etc without
root and other system accounts (i.e. only the user accounts). I've done
this by modifying /var/yp/Makefile.yp and using the following rc.conf
settings:
yppasswdd=YES
yppasswdd_flags="-d /var/yp"
--- /usr/src/usr.sbin/ypserv/ypinit/Makefile.yp Mon Aug 6 20:28:19 2001
+++ /var/yp/Makefile.yp Fri Aug 9 10:32:06 2002
@@ -21,7 +21,7 @@
# linux and solaris type shadow maps.
YPDBDIR= /var/yp
-DIR= /etc
+DIR= /var/yp/etc
AMDDIR= /etc/amd
AMDMAPS= amd.home
DOMAIN= ${.CURDIR:T}
sl:/var/yp/etc> ls -l
total 84
-rw-r--r-- 1 root wheel 97 Dec 11 15:26 group
-rw-r--r-- 1 root wheel 108 May 17 2002 hosts
-rw------- 1 root wheel 559 Dec 11 15:25 master.passwd
-rw-r--r-- 1 root wheel 435 Dec 11 15:23 passwd
-rw-r--r-- 1 root wheel 40960 Dec 11 15:23 pwd.db
-rw------- 1 root wheel 40960 Dec 11 15:23 spwd.db
Martti
---
Martti Kuparinen <martti.kuparinen@iki.fi> NetBSD - No media hype
http://www.iki.fi/kuparine/ http://www.netbsd.org/