From owner-freebsd-questions Wed Oct 30 10:46:40 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 0A83B37B401 for ; Wed, 30 Oct 2002 10:46:39 -0800 (PST) Received: from vectors.cx (manifold.vectors.cx [64.163.147.229]) by mx1.FreeBSD.org (Postfix) with ESMTP id A33AB43E42 for ; Wed, 30 Oct 2002 10:46:38 -0800 (PST) (envelope-from monkey@vectors.cx) Received: from vectors.cx (881e5362800b72648b2823479c97a2c3@localhost [127.0.0.1]) by vectors.cx (8.12.6/8.12.4) with ESMTP id g9UImNit083902; Wed, 30 Oct 2002 10:48:23 -0800 (PST) (envelope-from monkey@vectors.cx) Received: (from monkey@localhost) by vectors.cx (8.12.6/8.12.6/Submit) id g9UImN0x083901; Wed, 30 Oct 2002 10:48:23 -0800 (PST) (envelope-from monkey) Date: Wed, 30 Oct 2002 10:48:22 -0800 From: Adam Weinberger To: David Banning Cc: questions@FreeBSD.ORG Subject: Re: question on su use Message-ID: <20021030184822.GY197@vectors.cx> Mail-Followup-To: Adam Weinberger , David Banning , questions@FreeBSD.ORG References: <20021030131610.A32093@skytrackercanada.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; x-action=pgp-signed Content-Disposition: inline In-Reply-To: <20021030131610.A32093@skytrackercanada.com> X-Editor: Vim 6.1 http://www.vim.org X-Mailer: Mutt 1.5 http://www.mutt.org X-PGP-Key: http://www.vectors.cx/pgp.key.txt X-URL: http://www.vectors.cx http://www.crackula.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 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 >> (10.30.2002 @ 1016 PST): David Banning said, in 0.4K: << > I am attempting to create a simple user shell executable which will > execute a root command. > > Executing; > > 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? >> end of "question on su use" from David Banning << you can try su root -c killall squid or you can use sudo ::) - -Adam - -- Adam Weinberger adam@vectors.cx adamw@FreeBSD.ORG -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE9wCl2o8KM2ULHQ/0RAnLIAJ9mAyb7Zyc0tFdKrga/PFjI1d18gwCg1/5Z LYVvkjUIGlOAHX/YiNWGK6U= =edqO -----END PGP SIGNATURE----- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message