[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: opinion on shell cgi scripts
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: Re: opinion on shell cgi scripts
- From: Han Boetes <han_(_at_)_mijncomputer_(_dot_)_nl>
- Date: Mon, 1 Nov 2004 13:07:23 +0100
- Mail-followup-to: misc_(_at_)_openbsd_(_dot_)_org
Johan SANCHEZ wrote:
> Wijnand Wiersma <wwiersma_(_at_)_gmail_(_dot_)_com> wrote:
> > You can't make scripts suid, only binaries.
>
> Really ?
>
> # ls -l /var/www/cgi-bin/visite.sh
> -rwsr-sr-x 1 root daemon 1963 Oct 11 14:24 /var/www/cgi-bin/visite.sh
>
> ==> /var/www/cgi-bin/visite.sh <==
> #!/bin/sh
> fdate=`date |awk '{print $3,$2}'|sed "s/\ /\//"`
> ftime=`date |awk '{print $4}'`
Really.
# Han
Visit your host, monkey.org