From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,687072873db6dad0,start X-Google-Attributes: gidfee84,public From: iglesias@draco.acs.uci.edu (Mike Iglesias) Subject: Re: OSF Scripts / SUID HELP Date: 1995/09/20 Message-ID: <43oblf$q53@news.service.uci.edu>#1/1 X-Deja-AN: 110387671 references: <43o0p7$q0i@louie.udel.edu> organization: University of California, Irvine newsgroups: comp.unix.osf.osf1 In article <43o0p7$q0i@louie.udel.edu>, Shane L. Kingry 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