From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,2a508abc07667a69 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1993-09-08 07:34:31 PST Newsgroups: comp.unix.osf.osf1 Path: gmd.de!xlink.net!howland.reston.ans.net!usenet.ins.cwru.edu!news.ecn.bgu.edu!psuvax1!news.cc.swarthmore.edu!hirai From: hirai@cc.swarthmore.edu (Eiji Hirai) Subject: Re: non-superuser mounts under OSF/1 Message-ID: Sender: news@cc.swarthmore.edu (USENET News System) Nntp-Posting-Host: gingko.cc.swarthmore.edu Organization: Computing Center, Swarthmore College, Swarthmore, PA, USA References: <2689mmINNi9c@rave.larc.nasa.gov> Date: Wed, 8 Sep 1993 13:14:13 GMT eckman@eos1.larc.nasa.gov (Richard Eckman) writes: : Is there a better, more secure solution to the problem? Funny you should mention that. Here's something from a neighboring newsgroup. -- hirai@cc.swarthmore.edu (Eiji Hirai) | Unix Geek for Swarthmore College I don't speak for Swarthmore College | Computing Center, Swarthmore, PA, USA "I post, therefore I am." -Rene Descartes on Usenet : From: mjr@tis.com (Marcus J. Ranum) : Newsgroups: comp.unix.ultrix : Subject: Re: Allowing non-superusers to mount cdrom: HOW? : Date: 3 Sep 1993 13:46:26 GMT : Organization: Trusted Information Systems, Inc. : Message-ID: <267hri$sp8@sol.TIS.COM> : : >The subject pretty much says it all: How can I allow non-superusers : >on my DecStation 5000/33 running Ultrix 4.3 to mount/unmount the : >cdrom? Currently when they try to mount, they get: : : I usually use a setuid root program that is very, very : simple: : : : main() : { : char *av[5]; : : av[0] = "/usr/etc/mount"; : av[1] = "/pcfs"; : av[2] = (char *)0; : execv(av[0],av); : perror("exec"); : } : : -- You can add UID checking to it, or whatever. The nice thing : about this scheme is that it's fairly secure, as long as the programs : that you invoke in this manner don't have any loopholes in them. (I.e.: : you don't want to use this kind of trick to invoke a program that : uses system(3)) : : mjr.