Users unable to Mount a CD
I have a need for a user to run a script I wrote that contains a section to mount a cd & then later umount it. Running SuSE10 in runlevel3
The user was unable to mount the drive said must be superuser to mount.
I verified the fstab file was correctly configured :
/dev/cdrom /media/cdrom auto ro,noauto,user 0 0
I was able to make this work by changing the permissions on /bin/mount & /bin/umount with a suid ( chmod +s /bin/mount )
The user was then able to mount the cd.
My question is, the suid basically opens the cd for anybody to be able to mount it. I wanted to limit who had the ability. The last thing I tried was visudo the sudoers file as below:
loadqas ALL=NOPASSWD:/bin/mount /media/cdrom,/bin/umount /media/cdrom
Also tried it as :
Shouldn't that have worked with the sudoers change???