From owner-freebsd-questions@FreeBSD.ORG Fri Jul 25 06:12:02 2003 Return-Path: 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 695BE37B401 for ; Fri, 25 Jul 2003 06:12:02 -0700 (PDT) Received: from catflap.home.slightlystrange.org (pc4-cmbg1-4-cust87.cmbg.cable.ntl.com [80.6.127.87]) by mx1.FreeBSD.org (Postfix) with ESMTP id 08AF943FDD for ; Fri, 25 Jul 2003 06:12:01 -0700 (PDT) (envelope-from dan@slightlystrange.org) Received: from danielby by catflap.home.slightlystrange.org with local (Exim 4.20) id 19g2MZ-0003Ar-BS for freebsd-questions@freebsd.org; Fri, 25 Jul 2003 14:11:59 +0100 Date: Fri, 25 Jul 2003 14:11:59 +0100 From: Daniel Bye To: freebsd-questions Message-ID: <20030725131159.GA11471@catflap.home.slightlystrange.org> Mail-Followup-To: freebsd-questions References: <001f01c352a2$f8c2c740$3501a8c0@pro.sk> <03ab01c352a5$27b1a1a0$230aa8c0@MAGOME> <002f01c352a9$c02c8680$3501a8c0@pro.sk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="rwEMma7ioTxnRzrJ" Content-Disposition: inline In-Reply-To: <002f01c352a9$c02c8680$3501a8c0@pro.sk> User-Agent: Mutt/1.4.1i Subject: Re: Problem with periodically done scripts X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: dan@slightlystrange.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jul 2003 13:12:02 -0000 --rwEMma7ioTxnRzrJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jul 25, 2003 at 02:39:11PM +0200, Peter Rosa wrote: > Dear Luke, >=20 > thank you for helping. It is, of course possible, but on that machine > areonly 10 users, no one is added from 2001. Passwd is not the only file, > because whole security log seems as follows: >=20 > Checking setuid files and devices: >=20 >=20 > Checking for uids of 0: > root 0 > toor 0 > [: 0: unexpected operator >=20 > Checking for passwordless accounts: > [: 0: unexpected operator >=20 > hostname login failures: > [: 0: unexpected operator >=20 > hostname refused connections: > [: 0: unexpected operator >=20 > hostname checking for denied secondary zone transfers: > [: 0: unexpected operator >=20 > It seems to be an error of awk, which is used inside /etc/security script > (but not the only one). I have recompiled sed, sh but I can not reinstall > awk, as it is not in the port, nor /usr/src sub-tree. No, it's an error from [, a synonym (almost) for `test'. =20 > Any solution ? Try turning on the shell's xtrace facility - add ` -x' (without quotes) to= =20 the first line of the failing script: #!/bin/sh -x ^^^ Next time it runs, the output should show you where in the script the error is generated. If that still doesn't give you enough information to fix it, try posting again with some of the trace attached. Make sure to remove the ` -x' when you have fixed problem! HTH Dan --=20 Daniel Bye PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc PGP Key fingerprint: 3B9D 8BBB EB03 BA83 5DB4 3B88 86FC F03A 90A1 BE8F _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ --rwEMma7ioTxnRzrJ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE/ISyfhvzwOpChvo8RAmhIAKC/KQoQ5nLi6KrfUoq2CE6Md1dcugCeJpZB oh2ieogWj4cow7s5UEz2N2Q= =JJcK -----END PGP SIGNATURE----- --rwEMma7ioTxnRzrJ--