From: iglesias@draco.acs.uci.edu (Mike Iglesias)
Subject: Re: OSF Scripts / SUID HELP
Date: 1995/09/20 [thread overview]
Message-ID: <43oblf$q53@news.service.uci.edu> (raw)
In-Reply-To: 43o0p7$q0i@louie.udel.edu
In article <43o0p7$q0i@louie.udel.edu>,
Shane L. Kingry <shane@saturn.uaamath.alaska.edu> wrote:
>So, I wrote it, and it works great from root (of course). So, I set the
>file ownership to root, and then set the user suid bit... So, now, a normal
>user should be able to run the script, pass a filename to it, and it is
>supposed to copy it to the protected directory. However, the script still
>doesn't have access to the dir. How can I make this work?!
suid shell scripts are a security risk so most vendors disable it in
the kernel. You can write a program to copy the files, or write a
suid program that execs the script, but you need to be careful that
the program uses the absolute path to the script, sets the environment
securely, etc. Otherwise you could leave a security hole on your system
that could allow someone to become root and have free reign.
--
Mike Iglesias Internet: iglesias@draco.acs.uci.edu
University of California, Irvine phone: (714) 824-6926
Office of Academic Computing FAX: (714) 824-2069
parent reply other threads:[~1995-09-20 4:00 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <43o0p7$q0i@louie.udel.edu>]
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