Disable cdrom/dvd RHEL 6.2 for non-root users
What is the best practice to disable the cdrom/dvd for non-root users?
I was able to move/rename the cdrom.ko file in RHEL 5, but RHEL 6 this does not work!
Responses
Please try
echo "blacklist sr_mod" >> /etc/modprobe.d/blacklist-sr_mod.conf
After reboot, the sr_mod driver will not initialize.
The root user can circumvent this by
/sbin/modprobe sr_mod
Please let us know if this works for you.
Well, if 'users' parameter not added in the mount line of cd/dvd then only root user would be allowed, other non-root users would fail to mount those device.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
