... En tiedä miksi sinulla tuo ryhmä on root eikä lp, niinkuin defaulttina pitäisi olla, voit yrittää vaihtaa ryhmän lp:ksi komennolla sudo chgrp lp /dev/lp0
...
Siis
$ ls -l /dev/lp0
crw-rw---- 1 root root 6, 0 2007-03-06 17:23 /dev/lp0
$ sudo chgrp lp /dev/lp0
$ ls -l /dev/lp0
crw-rw---- 1 root lp 6, 0 2007-03-06 17:23 /dev/lp0
reboot ja taas on
$ ls -l /dev/lp0
crw-rw---- 1 root root 6, 0 2007-03-06 17:23 /dev/lp0
Miten korjataan?
EDIT:
Tässä vielä 40-permissions.rules- jos siitä olisi apua
$ cat /etc/udev/rules.d/40-permissions.rules
# This file establishes permissions and ownership of devices according
# to Ubuntu policy. See udev(
for syntax.
#
# The names of the devices must not be set here, but in 20-names.rules;
# user-friendly symlinks (which need no permissions or ownership) should
# be set in 60-symlinks.rules.
# Block devices
SUBSYSTEM!="block", GOTO="block_end"
SYSFS{removable}!="1", GROUP="disk"
SYSFS{removable}=="1", GROUP="floppy"
BUS=="usb", GROUP="plugdev"
BUS=="ieee1394", GROUP="plugdev"
LABEL="block_end"
# IDE devices
ENV{PHYSDEVBUS}!="ide", GOTO="ide_end"
KERNEL=="hd[a-z]|pcd[0-9]*", \
IMPORT{program}="cdrom_id --export $tempnode"
ENV{ID_CDROM}=="?*", GROUP="cdrom", MODE="0666"
KERNEL=="ht[0-9]*", GROUP="tape"
KERNEL=="nht[0-9]*", GROUP="tape"
LABEL="ide_end"
# IEEE1394 (firewire) devices
# Please note that raw1394 gives unrestricted, raw access to every single
# device on the bus and those devices may do anything as root on your system.
# Yes, I know it also happens to be the only way to rewind your video camera,
# but it's not going to be group "video", okay?
KERNEL=="raw1394", GROUP="disk"
KERNEL=="dv1394*", GROUP="video"
KERNEL=="video1394*", GROUP="video"
# Packet CD devices, group under /dev/pktcdvd
KERNEL=="pktcdvd", GROUP="lp", MODE="0666"
SUBSYSTEM=="usb", KERNEL="lp[0-9]*", GROUP="lp"
KERNEL=="pt[0-9]*", GROUP="tape"
KERNEL=="pht[0-9]*", GROUP="tape"
# SCSI devices
ENV{PHYSDEVBUS}!="scsi", GOTO="scsi_end"
SYSFS{type}=="1", GROUP="tape"
SYSFS{type}=="5", GROUP="cdrom", MODE="0666"
SYSFS{type}=="6", GROUP="scanner"
SYSFS{type}=="3", SYSFS{vendor}=="HP", GROUP="scanner"
LABEL="scsi_end"
# Serial devices
SUBSYSTEM=="tty", GROUP="dialout"
SUBSYSTEM=="capi", GROUP="dialout"
SUBSYSTEM=="slamr", GROUP="dialout"
KERNEL=="ttyLTM[0-9]*", GROUP="dialout", MODE="0666"
# Sound devices
SUBSYSTEM=="sound", GROUP="audio", MODE="0666"
# USB devices (usbfs replacement)
SUBSYSTEM=="usb_device", MODE="0664"
# vc (virtual console) devices
SUBSYSTEM!="tty", GOTO="vc_end"
KERNEL=="console", GROUP="root", MODE="0600"
KERNEL=="ptmx", GROUP="root", MODE="0666"
KERNEL=="pty*", GROUP="tty", MODE="0666"
KERNEL=="tty", GROUP="root", MODE="0666"
KERNEL=="tty[0-9]*", GROUP="root"
LABEL="vc_end"
# Video devices
SUBSYSTEM=="drm", GROUP="video"
SUBSYSTEM=="dvb", GROUP="video"
SUBSYSTEM=="graphics", GROUP="video"
SUBSYSTEM=="video4linux", GROUP="video"
KERNEL=="agpgart", GROUP="video"
KERNEL=="nvidia*", GROUP="video"
# Other devices, by name
KERNEL=="null", MODE="0666"
KERNEL=="zero", MODE="0666"
KERNEL=="full", MODE="0666"
KERNEL=="random", MODE="0666"
KERNEL=="urandom", MODE="0666"
KERNEL=="mem", GROUP="kmem", MODE="0640"
KERNEL=="kmem", GROUP="kmem", MODE="0640"
KERNEL=="port", GROUP="kmem", MODE="0640"
KERNEL=="nvram", GROUP="nvram"
KERNEL=="rtc", GROUP="audio"
KERNEL=="inotify", MODE="0666"
KERNEL=="js[0-9]*", GROUP="plugdev"
ja lisää (NIS-antaa ryhmät näköjään kahtena)
$ id
uid=1000(i) gid=1000(i) ryhmät=4(adm),7(lp),20(dialout),20(dialout),22(voice),22(voice),24(cdrom),
24(cdrom),25(floppy),25(floppy),29(audio),29(audio),30(dip),30(dip),44(video),44(video),46(plugdev),
46(plugdev),100(users),100(users),106(lpadmin),106(lpadmin),110(scanner),110(scanner),111(admin),111(admin),1000(i)