From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 31997 invoked from network); 6 Aug 1998 18:56:23 -0000 Received: from gatecoms.gatecom.com (198.87.96.251) by mail2.redhat.com with SMTP; 6 Aug 1998 18:56:23 -0000 Received: (from jsturm@localhost) by gatecoms.gatecom.com (8.8.7/8.8.7) id OAA23350; Thu, 6 Aug 1998 14:55:22 -0400 (EDT) Date: Thu, 6 Aug 1998 14:55:22 -0400 (EDT) From: Jeff Sturm X-Sender: jsturm@gatecoms To: axp-list@redhat.com Subject: Re: SUID scripts? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Setuid shell scripts are considered dangerous. I don't think they work on any Linux platform. Alternatively, you can use perl or a C wrapper binary (but beware of environment variables, if security is an issue). Jeff On Thu, 6 Aug 1998, Christopher Curtis wrote: > I'm trying to write a SUID shellscript, but am having problems. > > The script: > > ----------------------------------------------------------------------- > #!/bin/sh > > echo $UID > echo $EUID > ----------------------------------------------------------------------- > > The perms: > > -rwsrwx--- 1 root www 1521 Aug 6 14:40 cd-share > > The filesystem: > > /dev/sda5 /usr ext2 defaults 1 2 > > The output: > > ----------------------------------------------------------------------- > 308 > 308 > ----------------------------------------------------------------------- > > Is there something here that I'm totally missing? Redhat 4.2 > > -- > Christopher Curtis - http://www.ee.fit.edu/users/ccurtis > Florida Institute of Technology - System Administrator, Programmer > Melbourne, Florida USA - http://www.lp.org/ > > -- > To unsubscribe: send e-mail to axp-list-request@redhat.com with > 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com >