running redhat 6.2 (upgrade from redhat 5.2); /dev/cdrom is a link to my IDE cdrom; I must keep issuing 'chmod 666 /dev/<whatever my cdrom device is>' in order to play music cd's on my system. Something keeps changing the permissions back to 600. I have a number of systems this happens on. find /etc -name cron\* -type f -exec grep -e 'cdrom' -e 'dev' {} \; doesn't produce any cron jobs changing permissions on cdrom drive. # rpm -q dev dev-2.7.18-3
This is pam_console working its magic. It automatically gives ownership of your CD-ROM drive to users who log in on the console, so that they can use the drive without constant permission munging. If you want pam_console to not change the permissions, remove this line from /etc/security/console.perms: <console> 0600 <cdrom> 0600 root.disk