Unix Technical Forum

UDEV permissions

This is a discussion on UDEV permissions within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> I am running Slackware 10, upgraded to current, with a 2.6.8.1 kernel. I am having some trouble with udev ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 02:25 PM
Shilo Bacca
 
Posts: n/a
Default UDEV permissions

I am running Slackware 10, upgraded to current, with a 2.6.8.1 kernel. I
am having some trouble with udev permissions.

I have a dvd-rom (/dev/hdd) and a dvd-rw (/dev/hdc). I also have
/dev/cdrom and /dev/dvd, both of which are symlinks to /dev/hdd. All of
these (/dev/hdc, /dev/hdd, /dev/cdrom, and /dev/dvd) are root:cdrom 660.

I want to make a /dev/dvdrw which is a symlink to /dev/hdc. What I did is
rename /etc/udev/rules.d/udev.rules to /etc/udev/rules.d/50-udev.rules and
created a file (/etc/udev/rules.d/10-local.rules with the following line:

BUS="ide", KERNEL="hdc", NAME="%k", SYMLINK="dvdrw"

I rebooted to see if it worked, and the answer is.... sort of. I now have
/dev/hdc root:disk 660, /dev/hdd root:cdrom 660, /dev/cdrom (symlink to
/dev/hdd), /dev/dvd (symlink to /dev/hdd, and /dev/dvdrw (symlink to
/dev/hdc). What I want is for /dev/hdc to be root:cdrom.

I have tried several solutions, but none of them have worked for me. The
first was to edit /etc/udev/permissions.d/udev.permissions. Changed the
following section:

# optical devices
sr*:root:cdrom:660
scd*:root:cdrom:660
pcd*:root:cdrom:0660
cdrom*:root:cdrom:0660
dvd:root:cdrom:0660
rdvd:root:cdrom:0660
cdroms/*:root:cdrom:0660

My first sttempt, I changed it to look like this:

# optical devices
sr*:root:cdrom:660
scd*:root:cdrom:660
pcd*:root:cdrom:0660
cdrom*:root:cdrom:0660
dvd*:root:cdrom:0660
rdvd:root:cdrom:0660
cdroms/*:root:cdrom:0660

No dice. So I tried this:

# optical devices
sr*:root:cdrom:660
scd*:root:cdrom:660
pcd*:root:cdrom:0660
cdrom*:root:cdrom:0660
dvd:root:cdrom:0660
dvdrw:root:cdrom:0660
rdvd:root:cdrom:0660
cdroms/*:root:cdrom:0660

Still no luck. Does anyone have any ideas? I would like to be able to do
this without using chgrp in /etc/rc.d/rc.local.

Thanks in advance,

Shilo


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:31 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com