From owner-freebsd-isp Thu Oct 22 15:44:29 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA14907 for freebsd-isp-outgoing; Thu, 22 Oct 1998 15:44:29 -0700 (PDT) (envelope-from owner-freebsd-isp@FreeBSD.ORG) Received: from lodgenet.com (cline.lodgenet.com [204.124.122.251]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA14892; Thu, 22 Oct 1998 15:44:24 -0700 (PDT) (envelope-from johnp@lodgenet.com) Received: from milo.lodgenet.com (milo.lodgenet.com [10.0.122.42]) by lodgenet.com (8.7.5/8.7.3) with ESMTP id RAA04562; Thu, 22 Oct 1998 17:43:52 -0500 Received: from milo.lodgenet.com (localhost [127.0.0.1]) by milo.lodgenet.com (8.9.1/8.9.1) with ESMTP id RAA03187; Thu, 22 Oct 1998 17:43:34 -0500 (CDT) (envelope-from johnp@milo.lodgenet.com) Message-Id: <199810222243.RAA03187@milo.lodgenet.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Bill Sandiford cc: freebsd-bugs@FreeBSD.ORG, freebsd-isp@FreeBSD.ORG Subject: Re: FreeBSD 3.0 Release and pw command - Potential Bug? (fwd) In-reply-to: Your message of "Thu, 22 Oct 1998 17:26:52 EDT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 22 Oct 1998 17:43:34 -0500 From: John Prince Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I am not sure what your crontabs file looks like, however.. `pw' is locate in /usr/sbin.. Check your path.. Better yet, include it in your script. --John Bill Sandiford writes: > > 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, etc. > > We are not sure if this is a problem with our system or a bug with the pw > command that is in the 3.0 release...we have also tried invoking the > script from and inetd process as well.....we have tried this script on 3 > different systems and it doesn't work on any of them except when invoked > manually. > > 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-isp" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message