You are not logged in.

#1 2005-11-27 18:58:40

Alexo
Member
From: near a cup of coffee
Registered: 2005-06-27
Posts: 90

udev.permissions and cdrecord

a part of my udev.permissions:

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

# disk devices
hd*:root:disk:660
sd*:root:disk:660
dasd*:root:disk:660
ataraid*:root:disk:660
loop*:root:disk:660
md*:root:disk:660
ide/*/*/*/*/*:root:disk:660
discs/*/*:root:disk:660
loop/*:root:disk:660
md/*:root:disk:660

I have

disk::6:root,alex
optical::93:alex,hal

in /etc/group.

yet everytime the user alex tries to cdrecord, he gets:

$ cdrecord dev=/dev/hdc blank=fast
Cdrecord-Clone 2.01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
cdrecord: Warning: Running on Linux-2.6.10-ARCH
cdrecord: There are unsettled issues with Linux-2.5 and newer.
cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris.
scsidev: '/dev/hdc'
devname: '/dev/hdc'
scsibus: -2 target: -2 lun: -2
Warning: Open by 'devname' is unintentional and not supported.
Linux sg driver version: 3.5.27
Using libscg version 'schily-0.8'.
cdrecord: Warning: using inofficial libscg transport code version (warly-scsi-linux-sg.c-1.83 '@(#)scsi-linux-sg.c      1.83 04/05/20 Copyright 1997 J. Schilling').
cdrecord: Cannot allocate memory. Cannot get SCSI I/O buffer.

however the above command works for root.
:?

Offline

#2 2005-11-27 19:47:45

tpowa
Developer
From: Lauingen , Germany
Registered: 2004-04-05
Posts: 2,328

Re: udev.permissions and cdrecord

udev.permissions is history, do your changes to udev.rules or just add yourself to optical group.
greetings
tpowa

Offline

#3 2005-11-27 20:33:46

Alexo
Member
From: near a cup of coffee
Registered: 2005-06-27
Posts: 90

Re: udev.permissions and cdrecord

I deleted udev.permissions.
In udev.rules I have now:

# permissions for IDE CD devices
BUS=="ide", KERNEL=="hd[a-z]", SYSFS{removable}=="1", PROGRAM="/bin/cat /proc/ide/%k/media", RESULT=="cdrom*", NAME="%k", GROUP="optical"

and then

$ gpasswd -a alex optical

but I get the same error in cdrecord.

Offline

#4 2005-11-27 21:49:36

tpowa
Developer
From: Lauingen , Germany
Registered: 2004-04-05
Posts: 2,328

Re: udev.permissions and cdrecord

have you run pacman -Syu after install, if not please do this.

Offline

#5 2005-11-28 19:42:11

Alexo
Member
From: near a cup of coffee
Registered: 2005-06-27
Posts: 90

Re: udev.permissions and cdrecord

tpowa, is the objective to upgrade udev?
because if it is, I got this after pacman -Syu:

:: udev: local (071-4) appears to be newer than repo (current/068-4)

do you think it's worth to upgrade the other packages anyway?

Offline

Board footer

Powered by FluxBB