On Sat, Nov 04, 2000 at 06:52:35PM +0000, Mark Page wrote:
> A bit of an oddity. I can run kscd with no problems at all but if I try
> and run grip or any gnome cd player I get an error message to the effect
> that I do not, as a user (not root), have access to the cdrom drive.
>> I can mount the cdrom at the command line with no problem at all. What's
> going on? Is it a problem with permissions?
What else ? kscd on SuSE 7 is installed setuid root so it has of course no
problems accessing the CD. The mount entry for the CD has the user option so
mount (which is of course also a setuid root program) allows ordinary users
to mount a CD. By default, SuSE 7 does not give ordinary users read access to
disk devices. To solve your problems, the easiest thing to do is the
following which you must do as root
cd /dev
chmod a+r `ls -l cdrom|awk '{print $11}'`
which gives all users read access to the device to which cdrom is a symbolic
link. If your machine is used by you at home, this is just fine. In a
situation where you only wanted to allow certain users to access the CD
you'd need to make those users members of the disk group.
Regards,
Niall
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!