From owner-freebsd-questions@FreeBSD.ORG Thu Mar 11 12:01:09 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5A5BE106566B for ; Thu, 11 Mar 2010 12:01:09 +0000 (UTC) (envelope-from freebsdlists@bsdunix.ch) Received: from conversation.bsdunix.ch (ns1.bsdunix.ch [82.220.1.90]) by mx1.freebsd.org (Postfix) with ESMTP id F2CE28FC32 for ; Thu, 11 Mar 2010 12:01:08 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by conversation.bsdunix.ch (Postfix) with ESMTP id 50F8D63F5 for ; Thu, 11 Mar 2010 13:01:07 +0100 (CET) X-Virus-Scanned: by amavisd-new at mail.bsdunix.ch Received: from conversation.bsdunix.ch ([127.0.0.1]) by localhost (conversation.bsdunix.ch [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 4r6s+oOYclDm for ; Thu, 11 Mar 2010 13:00:47 +0100 (CET) Received: from 192.168.1.2.local.home (dmhd.bsdunix.ch [82.220.17.25]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by conversation.bsdunix.ch (Postfix) with ESMTP id 4A11E61DF for ; Thu, 11 Mar 2010 13:00:47 +0100 (CET) Message-ID: <4B98DB6E.5080505@bsdunix.ch> Date: Thu, 11 Mar 2010 13:00:46 +0100 From: Thomas User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.1.8) Gecko/20100227 Lightning/1.0b1 Thunderbird/3.0.3 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: NIS passwd file is never updated with new users X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Mar 2010 12:01:09 -0000 Hi I've configured a NIS master server as descriped in the freebsd handbook (http://www.freebsd.org/doc/handbook/network-nis.html). I removed all super and system users from master.passwd in /var/yp, chmod 600 master.passwd and initialized my NIS master server without any errors. ypcat passwd showed me a correct list with users. But the NIS password db will not be updated if i add any new user. I tried: pw useradd test1234 cd /var/yp make myusers `myusers' is up to date. My new added test1234 user is not added to/var/yp/master.passwd or /var/yp/passwd but test1234 is in /etc/passwd and /etc/master.passwd. How can i updated my NIS master.passwd? System Information: It's 7.2-RELEASE-p6 (amd64) my rc.conf for NIS: nisdomainname="myusers" nis_server_enable="YES" nis_yppasswdd_enable="YES" nis_ypxfrd_enable="YES" rpcinfo -p program vers proto port service 100000 4 tcp 111 rpcbind 100000 3 tcp 111 rpcbind 100000 2 tcp 111 rpcbind 100000 4 udp 111 rpcbind 100000 3 udp 111 rpcbind 100000 2 udp 111 rpcbind 100000 4 local 111 rpcbind 100000 3 local 111 rpcbind 100000 2 local 111 rpcbind 100024 1 udp 696 status 100024 1 tcp 697 status 100021 0 udp 751 nlockmgr 100021 0 tcp 951 nlockmgr 100021 1 udp 751 nlockmgr 100021 1 tcp 951 nlockmgr 100021 3 udp 751 nlockmgr 100021 3 tcp 951 nlockmgr 100021 4 udp 751 nlockmgr 100021 4 tcp 951 nlockmgr 100004 1 udp 671 ypserv 100004 2 udp 671 ypserv 100004 1 tcp 812 ypserv 100004 2 tcp 812 ypserv 100009 1 udp 818 yppasswdd 100009 1 tcp 602 yppasswdd 600100009 1 udp 818 600100009 1 tcp 602 100007 2 udp 878 ypbind 100007 2 tcp 917 ypbind 600100069 1 udp 694 600100069 1 tcp 674 root@host04:/var/yp# ll total 170 lrwxrwxrwx 1 root wheel 13 Feb 18 2009 Makefile -> Makefile.dist -r--r--r-- 1 root wheel 19276 Mar 10 22:42 Makefile.dist drwxr-xr-x 2 root wheel 512 Mar 11 10:55 binding -rw------- 1 root wheel 73770 Mar 11 11:45 master.passwd -rw------- 1 root wheel 69260 Mar 11 11:45 passwd -rw-r--r-- 1 root wheel 233 Mar 11 10:53 securenets drwx------ 2 root wheel 512 Mar 11 11:45 myusers -rw------- 1 root wheel 130 Mar 11 11:28 ypservers Regards, Thomas