Skip to contentSkip to conversation

simple question

DISCUSSION Niv 3 participants 4 messages Feb 19, 2006

lore
Share & tools
lore

Niv

author
#0 lore raw

Hay,

I read the udev HOWTO and I still dont understand why /dev/cdrom get a root:root permision.

I switched to RC_DEVICE_TARBALL="no" - so I guess I am a udev "pureist"

the line in /etc/udev/rules/50-udev.rules say:

# cdrom symlinks and other good cdrom naming

BUS="ide", KERNEL="hd[a-z]", ACTION="add", IMPORT="/sbin/cdrom_id
--export $tempnode"
BUS="scsi", KERNEL="sr[0-9]*", ACTION="add", IMPORT="/sbin/cdrom_id
--export $tempnode"
BUS="scsi", KERNEL="scd[a-z]", ACTION="add", IMPORT="/sbin/cdrom_id
--export $tempnode"
BUS="scsi", KERNEL="sg[0-9]*", ACTION="add", DRIVER="sr",
GROUP="cdrom"

#--- look here --

ENV{ID_CDROM}="?*", SYMLINK+="cdrom%e", GROUP="cdrom"

ENV{ID_CDROM_CD_RW}="?*", SYMLINK+="cdrw%e"
ENV{ID_CDROM_DVD}="?*", SYMLINK+="dvd%e"
ENV{ID_CDROM_DVD_R}="?*", SYMLINK+="dvdrw%e"

so I see GROUP="cdrom" - so It should be root:cdrom - right?

Niv

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#1 lore raw
Quoted 7 lines · Niv

Hay,

I read the udev HOWTO and I still dont understand why /dev/cdrom get a root:root permision.

I switched to RC_DEVICE_TARBALL="no" - so I guess I am a udev "pureist"

I'm guessing that you are using gentoo?

If so, please file a bug in their bugzilla, as this is a distro specific thing.

thanks,

greg k-h

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#2 lore raw
In reply to Niv
Quoted 1 line · Niv

so I see GROUP="cdrom" - so It should be root:cdrom - right?

Are you sure you have a cdrom group?

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

author
#3 lore raw
In reply to Niv
$ fgrep cdrom /etc/group
cdrom:x:19:haldaemon,mythtv,niv
Quoted 10 lines · Mark Rosenstand
Quoted 3 lines · Niv

so I see GROUP="cdrom" - so It should be root:cdrom - right?

Are you sure you have a cdrom group?

Quoted 10 lines

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel