From owner-freebsd-questions Wed Oct 30 17:42:41 2002 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 2B68137B401 for ; Wed, 30 Oct 2002 17:42:40 -0800 (PST) Received: from mail.thundernet.cz (mail.thundernet.cz [62.77.87.114]) by mx1.FreeBSD.org (Postfix) with SMTP id 9123A43E4A for ; Wed, 30 Oct 2002 17:42:38 -0800 (PST) (envelope-from neuhauser@bellavista.cz) Received: (qmail 18424 invoked from network); 31 Oct 2002 01:42:31 -0000 Received: from unknown (HELO freepuppy.bellavista.cz) (62.168.44.50) by mail.thundernet.cz with SMTP; 31 Oct 2002 01:42:31 -0000 Received: by freepuppy.bellavista.cz (Postfix, from userid 1001) id 962DF2FDAB2; Thu, 31 Oct 2002 02:42:21 +0100 (CET) Date: Thu, 31 Oct 2002 02:42:21 +0100 From: Roman Neuhauser To: David Banning Cc: questions@freebsd.org Subject: Re: question on su use Message-ID: <20021031014221.GS18364@freepuppy.bellavista.cz> Mail-Followup-To: David Banning , questions@freebsd.org References: <20021030131610.A32093@skytrackercanada.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021030131610.A32093@skytrackercanada.com> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG # david@skytrackercanada.com / 2002-10-30 13:16:10 -0500: > I am attempting to create a simple user shell executable which will > execute a root command. > > su root killall squid > > requests root's password, and then issues a; > > killall: /usr/bin/killall: cannot execute binary file > > while killall executes by root no problem. > Any idea what's going on here? it's not documented particularly well, only in the EXAMPLES section of su(1): su root -c "killall squid" -- If you cc me or take the list(s) out completely I'll most likely ignore your message. see http://www.eyrie.org./~eagle/faqs/questions.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message