From owner-freebsd-questions@FreeBSD.ORG Sat Aug 29 01:24:48 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8A37B106564A for ; Sat, 29 Aug 2009 01:24:48 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.24]) by mx1.freebsd.org (Postfix) with ESMTP id 1BDE58FC1B for ; Sat, 29 Aug 2009 01:24:47 +0000 (UTC) Received: by ey-out-2122.google.com with SMTP id 4so132803eyf.3 for ; Fri, 28 Aug 2009 18:24:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type:content-transfer-encoding; bh=7ePZJjI840nVw2O1IgVwv1OEF34zKx3tfi+Tbz+a+Xs=; b=pjWerxyrZ92wSq2U0nD4Ccp3vvRXGWdT+ZBB7o6WEchbh1ZijJH2Vz2piel6EmsoLm fy5KnXu7mr/pSGHuzQ7hxwvzelQBDLl580h+2S3mzFaWdgVW/DJC32fNHQYi87iBXmrS +/85oXaFW6CmyzuiOuTWRDBu4RMjW+zrulKCQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; b=diN87gjrPw9Fo7HAZIa5SdHRzZzszVTcE357slRcREkfHDlp8Y5ma7SHNifSjQg92f dJKkr5ADKSzHiNOVScud7obXG4mWjUZEkVz6mRXtIu0ZkUfDT6MytyaPiAs67SMW0TUv FcqSFlVQZsAwW7GU4WVMHk3IamdwwYLdC/1b8= Received: by 10.210.139.17 with SMTP id m17mr1137933ebd.7.1251509087250; Fri, 28 Aug 2009 18:24:47 -0700 (PDT) Received: from gumby.homeunix.com (bb-87-81-140-128.ukonline.co.uk [87.81.140.128]) by mx.google.com with ESMTPS id 7sm1184917eyg.36.2009.08.28.18.24.41 (version=SSLv3 cipher=RC4-MD5); Fri, 28 Aug 2009 18:24:46 -0700 (PDT) Date: Sat, 29 Aug 2009 02:24:31 +0100 From: RW To: freebsd-questions@freebsd.org Message-ID: <20090829022431.5841d4de@gumby.homeunix.com> In-Reply-To: <87y6p4pbd0.fsf@kobe.laptop> References: <87y6p4pbd0.fsf@kobe.laptop> X-Mailer: Claws Mail 3.7.2 (GTK+ 2.16.5; i386-portbld-freebsd7.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: SUID permission on Bash script X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Aug 2009 01:24:48 -0000 On Fri, 28 Aug 2009 11:54:19 +0300 Giorgos Keramidas wrote: > On Fri, 28 Aug 2009 09:24:35 +0100, Jeronimo Calvo > wrote: > > As far as i know, using SUID, script must runs with root > > permissions... so i shoudnt get "Permission denied", what im doing > > wrong?? > > No it must not. There are security reasons why shell scripts are not > setuid-capable. You can find some of them in the archives of the > mailing list, going back at least until 1997. I'm bit puzzled by this, previous threads have given the impression that this is a myth, for example: http://www.mail-archive.com/freebsd-questions@freebsd.org/msg185134.html So are scripts actually incapable of running setuid?