From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,2d6e896da9a07d8b,start X-Google-Attributes: gidfee84,public From: top@ccrs.emr.ca (Andrew Top) Subject: Locking cd-rom eject Date: 1995/08/10 Message-ID: #1/1 X-Deja-AN: 107907779 sender: news@emr1.emr.ca x-nntp-posting-host: pctop.ccrs.emr.ca organization: CCRS newsgroups: comp.unix.osf.osf1 Is there a way to lock the cd rom so that people cannot eject it when it is mounted. I'm using a C program that allows an ordinary user to mount and unmount the CD so I'd like to incorporate the command in the program. Would flock() do this? Thanks in advance. Andrew Top andrew.top@ccrs.nrcan.gc.ca