From owner-freebsd-questions Mon Mar 10 21:28:42 2003 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 50A6E37B401 for ; Mon, 10 Mar 2003 21:28:41 -0800 (PST) Received: from chen.org.nz (chen.org.nz [210.54.19.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id E956243FAF for ; Mon, 10 Mar 2003 21:28:39 -0800 (PST) (envelope-from jonc@chen.org.nz) Received: from grimoire.chen.org.nz (localhost [127.0.0.1]) by chen.org.nz (8.12.8/8.12.8) with ESMTP id h2B5SZeg065762; Tue, 11 Mar 2003 18:28:38 +1300 (NZDT) (envelope-from jonc@grimoire.chen.org.nz) Received: (from jonc@localhost) by grimoire.chen.org.nz (8.12.8/8.12.8/Submit) id h2B5SZnZ065761; Tue, 11 Mar 2003 18:28:35 +1300 (NZDT) Date: Tue, 11 Mar 2003 18:28:35 +1300 From: Jonathan Chen To: Paul Lathrop Cc: freebsd-questions@FreeBSD.ORG Subject: Re: suid shell script Message-ID: <20030311052835.GA65690@grimoire.chen.org.nz> References: <391E822F-537B-11D7-9C72-000393BF3DE2@mqtweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <391E822F-537B-11D7-9C72-000393BF3DE2@mqtweb.com> User-Agent: Mutt/1.4i 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 On Mon, Mar 10, 2003 at 11:37:53PM -0500, Paul Lathrop wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I must admit I feel silly having to ask, but I've been banging my head > against this for a couple days now and I am completely stumped. > > I just recently switched from Slackware Linux 8.0 to FreeBSD. There are > a couple of scripts I use for my own convenience that I ran setuid root > on my Linux box. All that I had to do was make sure the scripts were > owned by root, and then do a chmod 4711 on them to make it work in > Linux. I just set up a script on FreeBSD - the first time I've actually > done it since I switched. I followed the same procedure, but when I run > the script as a normal user, it does not run with elevated priveleges. Dunno about Linux, but every other modern UNIX out there doesn't allow setuid scripts. -- Jonathan Chen ----------------------------------------------------------------------- "I love deadlines. I like the whooshing sound they make as they fly by" - Douglas Adams To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message