In article <1993Jan8.173010.18598@csi.uottawa.ca> glenn@popeye.genie.uottawa.ca (Glenn Warnock 789-3225 Algonquin Associate) writes:
>
>We would like to allow all users to mount CD-ROM on our netwrok. It seems the only way to do this is to use mount which requires super user provileges.
>
>We are trying to write a script which will invoke su and mount the CD-ROM, but we cannot invoke su in the script and automatically give it the password.
>
>Any suggestions on how to solve this problem?
Obvious solution: make the script set-uid. Obvious problem: security hole.
Never, ever, have a set-uid shell script unless there is absolutely no
other alternative (and even then, think twice).
One viable alternative is the "sudo" program, which will allow you (root)
to let specific users run specific commands (ex: mount) as root. I've
also seen a "safe" mount/umount program which was posted a long while
back... don't have the sources handy right now but I could find 'em. I'd
probably go with "sudo" myself... check your local archie server...
--
Francisco X DeJesus ----- S A I C ----- dejesus@chinalake.navy.mil