From: Jeff Sturm <jsturm@gatecom.com>
To: axp-list@redhat.com
Subject: Re: SUID scripts?
Date: Thu, 6 Aug 1998 14:55:22 -0400 (EDT) [thread overview]
Message-ID: <Pine.SV4.3.90.980806145119.22464A-100000@gatecoms> (raw)
In-Reply-To: <Pine.GSO.3.96.980806143814.8059l-100000@yacht.ee.fit.edu>
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
>
next prev parent reply other threads:[~1998-08-06 18:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-08-06 18:42 SUID scripts? Christopher Curtis
1998-08-06 18:55 ` Jeff Sturm [this message]
1998-08-07 0:23 ` Mike "Ford" Ditto
1998-08-07 4:03 ` Michal Jaegermann
1998-08-07 11:29 ` cfm
1998-08-08 10:55 ` Christoph Zens
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox