From owner-freebsd-questions@FreeBSD.ORG Thu Aug 4 20:36:04 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8C96716A41F for ; Thu, 4 Aug 2005 20:36:04 +0000 (GMT) (envelope-from dmacpherson@mainframe.ca) Received: from wale.mainframe.ca (wale.mainframe.ca [209.17.131.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3768443D46 for ; Thu, 4 Aug 2005 20:36:04 +0000 (GMT) (envelope-from dmacpherson@mainframe.ca) Received: from jupiter.mainframe.ca ([10.0.0.12] helo=mail.mainframe.ca) by wale.mainframe.ca with esmtp (Exim 4.52 (FreeBSD)) id 1E0mRf-000AF6-LB for freebsd-questions@freebsd.org; Thu, 04 Aug 2005 13:36:03 -0700 Received: from [172.16.139.102] (helo=Mandarin-04.mainframe.ca) by mail.mainframe.ca with esmtp (Exim 4.51 (FreeBSD)) id 1E0mPo-00015z-9o for freebsd-questions@freebsd.org; Thu, 04 Aug 2005 13:34:08 -0700 From: Derrick MacPherson To: Questions Content-Type: text/plain Organization: Mainframe Entertainment Inc Date: Thu, 04 Aug 2005 13:36:03 -0700 Message-Id: <1123187763.22409.83.camel@Mandarin-04.mainframe.ca> Mime-Version: 1.0 X-Mailer: Evolution 2.0.2 (2.0.2-16) Content-Transfer-Encoding: 7bit Subject: adduser re-writting groups file incorrectly 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, 04 Aug 2005 20:36:04 -0000 I have a 4.10 machine thats our internal mailserver. we use NIS for the accounts, we add a couple local accounts just in case NIS can't be contacted... We had our software developers make a change to all users PATH, part of which points to a different version of the su command, which we've since discovered doesn't work under fbsd (linux all over here, but i'm trying to change it), that change was made without my knowing. While I was out for lunch one the admins tried to su and couldn't, they assumed they needed a local account, so they used the adduser script to add a user. the next available UID was taken for the account and when the account was created I think it errored on creating the home dir, because it happened to clash with a UID out of NIS. The big kafuffle out of this is that it wrote the group file with the NIS entry written at the top, which caused mail to stop working as it was picking up the wrong UID for mail out of NIS. I was able to recreate this once, but not in 3 more attempts. I guess this isn't a question just a comment I wanted to toss out there...