[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: SUID scripts?



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
> 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []