SUMMARY: Allowing User Mounts on CDROM's

From: Chris Glenister <crg_at_cranfield.ac.uk>
Date: Mon, 18 Sep 1995 12:23:28 PDT

Hello All,

My original question was, how can I allow users to mount their own CDROM's on a
/CDROM mount point using a script file. What I required was that the script file
would have to have permissions on it to allow anyone to run it, however when it
came to mounting the CDROM, this would have to be run with root privileges.



SUMMARY
-----------------
Everyone agreed that you should not set the setuid/setgid on the script file
(chmod u+s, g+s) as this is potentially a major security risk with script files which
can run with superuser privileges.


What most people recommeded was to write a small 'C' program which will setup
the sticky bit for the user to root instead and then run the script file, but you code
the 'C' program to perform all the cdrom mounting as well. Some of the replies
included a 'C' program which I have not had the chance to look at (Thanks Guys)
which will provide a user interface to mount CDROMS.


I was also made aware of a utility called "sudo" which can be found at
src.doc.ic.ac.uk via the anonymous ftp account or by using Archie to find "sudo".
This lets you do simple superuser things with scripts (check it out)


Thanks to everyone who relplied, it's great to hear from so may people, and if I
have missed you off the list, please accept my apologies.


Cheers

Chris Glenister
SSLRC, Cranfield University


Special Thanks to:

 Andy Phillips <atp_at_mssly1.mssl.ucl.ac.uk>
Craig I. Hagan <hagan_at_oec.com>
Paul Bushen <pb_at_hawke.co.uk>
Martin Moore <martin_at_jerry.alf.dec.com>
 Istvan Pecsenyanszky <inpecsen_at_immd3.informatik.uni-erlangen.de>
Ken Teh <teh_at_chinook.phy.anl.gov>
Jim Wright <jwright_at_phy.ucsf.edu>
Khalid Paden <khalid_at_FNAL.FNAL.GOV>
David Warren <warren_at_atmos.washington.edu>
Received on Mon Sep 18 1995 - 14:17:20 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:45 NZDT