Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: hirai@cc.swarthmore.edu (Eiji Hirai)
Subject: Re: non-superuser mounts under OSF/1
Date: Wed, 8 Sep 1993 13:14:13 GMT	[thread overview]
Message-ID: <CD1E3q.9n@cc.swarthmore.edu> (raw)
In-Reply-To: 2689mmINNi9c@rave.larc.nasa.gov

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.


      reply	other threads:[~1993-09-08 13:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-09-03 20:33 non-superuser mounts under OSF/1 Richard Eckman
1993-09-08 13:14 ` Eiji Hirai [this message]
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