Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Jul 2003 21:12:30 +0200
From:      "Peter Rosa" <prosa@pro.sk>
To:        "Vitali Malicky" <life@zone3000.net>
Cc:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: Problem with periodically done scripts
Message-ID:  <023301c352e0$b17fcac0$3501a8c0@pro.sk>
References:  <020d01c352dc$0ef7a7e0$3501a8c0@pro.sk> <028101c352dd$d87ee230$2401010a@zone3000.net>

next in thread | previous in thread | raw e-mail | index | archive | help
It is doing xactly the same as my scripts (unexpected operator).

Everything gone well until April 20. Scripts my machine use are from
standard FBSD installation, so why they are not working now ?

Peter Rosa


----- Original Message -----
From: "Vitali Malicky" <life@zone3000.net>
To: "freebsd-questions" <freebsd-questions@freebsd.org>
Sent: Friday, July 25, 2003 8:52 PM
Subject: Re: Problem with periodically done scripts


>
>
> > I'm asking again, as there is no response up now.
>
> You forgot to say "please", sir...  8-|
>
> >
> > As for me, now it seems as.... I don't know what's the error here, I
have
> > never seen that listings (using -x switch).
>
> try my scripts, I never have any problems with them, so don't even
understan
> what you're about...
>
> 300.chkuid0
> =========
> #!/bin/sh -
> if [ -r /etc/defaults/periodic.conf ]
> then
>     . /etc/defaults/periodic.conf
>     source_periodic_confs
> fi
>
> case "$daily_status_security_chkuid0_enable" in
>     [Yy][Ee][Ss])
>         echo ""
>         echo 'Checking for uids of 0:'
>         n=$(awk -F: '/^#/ {next} $3==0 {print $1,$3}' /etc/master.passwd |
>         tee /dev/stderr |
>         sed -e '/^root 0$/d' -e '/^toor 0$/d' |
>         wc -l)
>         [ $n -gt 0 ] && rc=1 || rc=0;;
>     *)  rc=0;;
> ============
>
> 400.passwdless
> ============
> #!/bin/sh -
> if [ -r /etc/defaults/periodic.conf ]
> then
>     . /etc/defaults/periodic.conf
>     source_periodic_confs
> fi
>
> case "$daily_status_security_passwdless_enable" in
>     [Yy][Ee][Ss])
>         echo ""
>         echo 'Checking for passwordless accounts:'
>         n=$(awk -F: 'NF > 1 && $1 !~ /^[#+-]/ && $2=="" {print $0}'
> /etc/master.passwd |
>             tee /dev/stderr | wc -l)
>         [ $n -gt 0 ] && rc=1 || rc=0;;
>     *)  rc=0;;
> esac
>
> exit "$rc"
>
>
> ===========================
>
>
>
>
> >
> > Peter Rosa
> >
> >
> >
> > ----- Original Message -----
> > From: "Peter Rosa" <prosa@pro.sk>
> > To: <dan@slightlystrange.org>
> > Cc: "freebsd-questions" <freebsd-questions@freebsd.org>
> > Sent: Friday, July 25, 2003 6:59 PM
> > Subject: Re: Problem with periodically done scripts
> >
> >
> > > Here is complete listing. Do you have any idea ?
> > >
> > > + echo Checking for uids of 0:
> > > Checking for uids of 0:
> > > + awk -F: $3==0 {print $1,$3} /etc/master.passwd
> > > + tee /dev/stderr
> > > root 0
> > > toor 0
> > > + sed -e /^root 0$/d -e /^toor 0$/d
> > > + wc -l
> > > + n=
> > > + [ -gt 0 -a -lt 1 ]
> > > [: 0: unexpected operator
> > > + echo Checking for passwordless accounts:
> > > Checking for passwordless accounts:
> > > + awk -F: NF > 1 && $1 !~ /^[#+-]/ && $2=="" {print $0}
> /etc/master.passwd
> > > + tee /dev/stderr
> > > + wc -l
> > > + n=
> > > + [ -gt 0 -a -lt 1 ]
> > > [: 0: unexpected operator
> > >
> > >
> > > Peter Rosa
> >
> > _______________________________________________
> > freebsd-questions@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe@freebsd.org"
>
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"freebsd-questions-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?023301c352e0$b17fcac0$3501a8c0>