From owner-freebsd-security Thu Mar 28 14: 2:47 2002 Delivered-To: freebsd-security@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id 532D437B41C for ; Thu, 28 Mar 2002 14:02:32 -0800 (PST) Received: from hades.hell.gr (patr530-b185.otenet.gr [212.205.244.193]) by mailsrv.otenet.gr (8.12.2/8.12.2) with ESMTP id g2SM2Gg1020689; Fri, 29 Mar 2002 00:02:22 +0200 (EET) Received: from hades.hell.gr (hades [127.0.0.1]) by hades.hell.gr (8.12.2/8.12.2) with ESMTP id g2SM1jou002638; Fri, 29 Mar 2002 00:02:15 +0200 (EET) (envelope-from keramida@freebsd.org) Received: (from charon@localhost) by hades.hell.gr (8.12.2/8.12.2/Submit) id g2SK5ASh002006; Thu, 28 Mar 2002 22:05:10 +0200 (EET) (envelope-from keramida@freebsd.org) Date: Thu, 28 Mar 2002 22:05:09 +0200 (EET) From: Giorgos Keramidas X-X-Sender: charon@hades To: Domas Mituzas Cc: Jason Stone , Fernan Aguero , FreeBSD Security Subject: Re: using ssh to run remote commands? In-Reply-To: <20020328105535.W10792-100000@axis.tdd.lt> Message-ID: <20020328220341.D1966-100000@hades> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On 2002-03-28 11:03, Domas Mituzas wrote: > /* $Id: main.c,v 1.6 2001/11/03 14:33:23 midom Exp $ */ > > #include > #include > #include > > #define MAXARGS 10 > > #define ONLY "bin/" > > int > main(int ac, char **av) > { > char **ap, *argv[MAXARGS], *is; > /* > * skip first two arguments - the first gives shell name, that we > * know and the second gives "-c" that we also know > */ > av += 2; > is = av[0]; > if (ac < 2) > exit(0); * me puts paranoid hat on. Still, you might want to make sure that these two are in fact what you expect. I'm not sure if it *can* affect the way your shells work, but it won't hurt to check :-) Giorgos Keramidas FreeBSD Documentation Project keramida@{freebsd.org,ceid.upatras.gr} http://www.FreeBSD.org/docproj/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message