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.
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.