From owner-freebsd-questions Thu Oct 22 10:29:54 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA25807 for freebsd-questions-outgoing; Thu, 22 Oct 1998 10:29:54 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from ns2.interlinks.net (ns2.interlinks.net [207.107.160.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA25801 for ; Thu, 22 Oct 1998 10:29:51 -0700 (PDT) (envelope-from bill@interlinks.net) Received: from localhost (bill@localhost) by ns2.interlinks.net (8.9.1/8.8.8) with ESMTP id NAA27177 for ; Thu, 22 Oct 1998 13:22:26 -0400 (EDT) Date: Thu, 22 Oct 1998 13:22:26 -0400 (EDT) From: Bill Sandiford To: freebsd-questions@FreeBSD.ORG Subject: FreeBSD 3.0 Release and pw Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG We are having a problem with FreeBSD 3.0 Release and it's associated pw command. We have scripts that used to work perfectly in the 2.2.x line. The script still works perfectly when we run it manually as root (logged in at the terminal) however when cron executes the script, the pw commands in the script don't work. We are executing the script using the crontab for root. We know that the script is executing because some of the other commands in the script are happening and working. The script is designed to add a new user to our system and the line with pw looks something like this : echo password | pw useradd username -h 0 -c "Full Name" -g group -u uid -m -d homedir obviously we substitute a correct numeric id for uid and proper groupname for group. We are not sure if this is a problem with our system or with the pw that is in the 3.0 release...we have tried this script on 3 different systems and it doesn't work on any of them. Any help please!!! ------------------------------------------ Bill Sandiford Jr. - Systems Administrator Interlinks - http://www.interlinks.net sysop@interlinks.net - bill@interlinks.net (905)404-0810 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message