Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 49924 - amanda devfs.d config file omits changer devices
Summary: amanda devfs.d config file omits changer devices
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-03 19:19 UTC by Matthew Marlowe (RETIRED)
Modified: 2004-05-03 22:40 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 Matthew Marlowe (RETIRED) gentoo-dev 2004-05-03 19:19:45 UTC
During installation, amanda automatically creates the following file in /etc/devfs.d:

amanda:
# raw access to partitions for amanda
REGISTER   ^scsi/host.*/bus.*/target.*/lun.*/part[0-9]    PERMISSIONS root.disk 660
REGISTER   ^ide/host.*/bus.*/target.*/lun.*/part[0-9]     PERMISSIONS root.disk 660

Unfortunately, this does nothing to help the amanda user access tape drives or changers.  I have had to add the following:
REGISTER   ^scsi/host.*/bus.*/target.*/lun.*/generic      PERMISSIONS root.disk 660

Reproducible: Always
Steps to Reproduce:
1.Install amanda on any gentoo server w/ an autoloader
2.Modify the standard amanda configuration files
3.Attempt to run amlabel

Actual Results:  
keats devfs.d # su - amanda
amanda@keats amanda $ amlabel -f DailySet1 DL01
amlabel: could not load slot "current": open: /dev/sg0: Permission denied


Expected Results:  
amanda@keats amanda $ amlabel -f DailySet1 DL01
labeling tape in slot 0 (/dev/nst0):
rewinding, reading label, not an amanda tape
rewinding, writing label DL01, checking label, done.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-05-03 22:40:49 UTC
send me an autoloading tape drive and i'll be sure to test it next time.
;-). they are way out of my budget.

i've added your new line into the source file for the devfs.d/amanda, commented out with a note to use it for tape changers, and a note in the postinst of amanda to the same effect.