Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* non-superuser mounts under OSF/1
@ 1993-09-03 20:33 Richard Eckman
  1993-09-08 13:14 ` Eiji Hirai
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Eckman @ 1993-09-03 20:33 UTC (permalink / raw)


  I just attached our Sony eraseable-optical drive to a DEC 3000/400
workstation running OSF/1 v1.3.  The drive behaves properly (unlike
when the machine was running v1.2), but I find that the OSF/1 mount 
command is rather different than under ultrix.  I would like regular
users (non-superuser) to be able to mount their own optical drive 
platters. This was possible under ultrix as long as you set the 
protections properly on the /dev/*rz* files relevant to the optical 
drive.
  Looking at the man page for OSF/1, it states that to mount a
UFS filesystem you must be superuser.  The only way that I've
found for mount (and umount) to work for a regular user is to
set the setuid and setgid bits on the /usr/sbin/mount (or umount)
command and change ownership of the command to root.  This strikes 
me as about as unsecure as possible as any user can mount and 
umount any filesystem.  Is there a better, more secure solution to the 
problem?
  Thanks for any assistance.

Richard Eckman
NASA Langley
eckman@eos1.larc.nasa.gov



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: non-superuser mounts under OSF/1
  1993-09-03 20:33 non-superuser mounts under OSF/1 Richard Eckman
@ 1993-09-08 13:14 ` Eiji Hirai
  0 siblings, 0 replies; 2+ messages in thread
From: Eiji Hirai @ 1993-09-08 13:14 UTC (permalink / raw)


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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1993-09-08 13:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-09-03 20:33 non-superuser mounts under OSF/1 Richard Eckman
1993-09-08 13:14 ` Eiji Hirai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox