From owner-freebsd-questions Wed Nov 7 13:11:20 2001 Delivered-To: freebsd-questions@freebsd.org Received: from web10405.mail.yahoo.com (web10405.mail.yahoo.com [216.136.130.97]) by hub.freebsd.org (Postfix) with SMTP id ED45537B416 for ; Wed, 7 Nov 2001 13:11:15 -0800 (PST) Message-ID: <20011107211115.84282.qmail@web10405.mail.yahoo.com> Received: from [24.151.67.151] by web10405.mail.yahoo.com via HTTP; Wed, 07 Nov 2001 13:11:15 PST Date: Wed, 7 Nov 2001 13:11:15 -0800 (PST) From: Dylan Carlson Reply-To: absinthe@pobox.com Subject: Re: NIS & wheel/su problems To: Eric , freebsd-questions In-Reply-To: <000c01c167bc$70143690$0c01a8c0@setibox> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On my NIS master I have a script with these lines: tail +18 /etc/master.passwd > /var/yp/master.passwd tail +20 /etc/group > /var/yp/group ...etc I also wrote the script to automatically push the maps out for us as well. (YMMV) You'll just have to build a script for whatever works for you... It's easy. Throw it into cron and have it run hourly. Or just do it by hand. For the purposes of a NIS distribution, it's impossible to send a NIS script out that works for everyone. Not everyone has the same number of system accounts, local-only accounts, etc. Dylan --- Eric wrote: > So I'm setting up NIS on our network and it seems like it's working just > fine. On the master server, I build the maps from the system files and my > user is part of the wheel group, so I can su. On all the NIS client > machines, no local users (except root of course) have been set up, so the > clients wheel group doesn't contain my user, but the NIS wheel group does. I > use the NIS include symbol at the bottom of the client machines group file. > Now I can log into these clients fine as myself, but they won't let me su to > root because the local wheel group is found first, and doesn't include me. > If I take the wheel group out of the local file, I get errors on bootup. > > Is there a way around this?? Is there a way to augment a group with NIS > users?? > > Also, according to the handbook, I'm supposed to copy my master.passwd file > into the yp directory, and manually edit it to remove system accounts that > shouldn't be propagated. But that means everytime I add a user, I have to > add them to the master server, copy the file, and edit it all over again. > That seems too roundabout. The other problem with that is users who change > their password with yppasswd, have their new passwords destroyed when the > /var/yp/master.passwd is overwritten by the one from /etc. Is there a better > way to do this, or is it really a big deal to have the system accounts > appear in NIS. Can I just add, remove, and yppasswd users normally, and have > NIS use the /etc/master.passwd file so that everything is in sync?? > > Thanks > > eric > www.tek-shop.com > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message __________________________________________________ Do You Yahoo!? Find a job, post your resume. http://careers.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message