Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 84389 - /dev/sg* permissions problem
Summary: /dev/sg* permissions problem
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Greg Kroah-Hartman (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-07 05:45 UTC by Jonathan Heaney
Modified: 2005-04-24 11:41 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Heaney 2005-03-07 05:45:52 UTC
Using udev-054, and kernel 2.6.11-ck1, /dev/sg0 and /dev/sg1 have permissions root:root - all other /dev/sg* devices have permissions root:cdrw.

I have a real scsi cd burner on an Adaptec scsi card, cdrecord cannot write to /dev/sg0 as a normal user (who is in the cdrw group), due to permissions.

If I manually 'chgrp cdrw /dev/sg0', cdrecord (and k3b) can write cd's OK.

This manual change does not survive a reboot.  Device tarball saving at shutdown is enabled.  I assume this does not save the device permissions.

I could not see any mention of /dev/sg* devices in the rules/permissions files in /etc/udev.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




emerge info
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.4.3-20050110,
glibc-2.3.4.20050125-r0, 2.6.11-ck1 i686)
=================================================================
System uname: 2.6.11-ck1 i686 AMD Athlon(tm)
Gentoo Base System version 1.6.9
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Feb 18 2005, 00:54:21)]
dev-lang/python:     2.3.5
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r4
sys-devel/libtool:   1.5.10-r5
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O2 -fomit-frame-pointer -fprefetch-loop-arrays -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -fomit-frame-pointer -fprefetch-loop-arrays -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://192.168.0.1/gentoo-portage"
USE="x86 3dnow X aac acpi alsa avi berkdb bitmap-fonts cdr crypt cups curl dga
divx4linux dvd emboss encode esd f77 fam flac foomaticdb fortran gdbm geoip gif
gimpprint gnome gpm gstreamer gtk gtk2 imagemagick imlib ipv6 joystick jpeg
libg++ libwww mad mikmod mmx mng motif mozilla mp3 mpeg ncurses nls nptl nvidia
oggvorbis opengl oss pam pdflib perl png ppds python quicktime readline sdl
slang spell sse ssl svg svga tcpd theora tiff truetype truetype-fonts
type1-fonts unicode usb wmf xml2 xmms xprint xv xvid zlib linguas_en_GB"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 Greg Kroah-Hartman (RETIRED) gentoo-dev 2005-04-24 11:41:45 UTC
I think this has already been closed out, as it isn't a bug.  I can't mark all sg devices as cdroms, as they
are not.

If you want this, please just add a custom udev rule to do so.