* Re: OSF Scripts / SUID HELP
[not found] <43o0p7$q0i@louie.udel.edu>
@ 1995-09-20 4:00 ` Mike Iglesias
0 siblings, 0 replies; only message in thread
From: Mike Iglesias @ 1995-09-20 4:00 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1995-09-20 4:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <43o0p7$q0i@louie.udel.edu>
1995-09-20 4:00 ` OSF Scripts / SUID HELP Mike Iglesias
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox