Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Jul 2003 14:11:59 +0100
From:      Daniel Bye <dan@slightlystrange.org>
To:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: Problem with periodically done scripts
Message-ID:  <20030725131159.GA11471@catflap.home.slightlystrange.org>
In-Reply-To: <002f01c352a9$c02c8680$3501a8c0@pro.sk>
References:  <001f01c352a2$f8c2c740$3501a8c0@pro.sk> <03ab01c352a5$27b1a1a0$230aa8c0@MAGOME> <002f01c352a9$c02c8680$3501a8c0@pro.sk>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030725131159.GA11471>