Hi, Sean Noonan wrote: > This for the archives, to save some poor SOB like myself days and days of > misery. > > I was never able to get chg-scsi up and working PROPERLY under FreeBSD > 4.3-STABLE. Even when I followed the advice of the amanda-users list and > CVS'd the latest sources, the resulting chg-scsi (it did build at least!) > would not work PROPERLY. It worked under root, but not under operator. An > amcheck would always result in: > > bash-2.05# su -m operator -c 'amcheck -s love' > Amanda Tape Server Host Check > ----------------------------- > Holding disk /disk2: 11843263 KB disk space available, using 11833023 KB > changer: got exit: 2 str: chg-scsi: open: 0:3:1: Permission denied > amcheck-server: could not get changer info: open: 0:3:1: Permission denied > could not get changer info: open: 0:3:1: Permission denied > amcheck-server: pid 83843 finish time Mon Jun 4 03:06:05 2001 > > I tried everything possible in terms of granting permissions, etc. I even > 'chown operator:operator /dev/ch0'. But to no avail. The chg-scsi driver talks to the devices via the /dev/pass? and /dev/xpt? devices, not via their "normal" device names. You can find out which device(s) to chmod by using "camcontrol devlist -v". For example: # camcontrol devlist -v scbus0 on bt0 bus 0: <Quantum DLT4000 CC1E> at scbus0 target 4 lun 0 (pass0,sa0) <Quantum DLT4000 D782> at scbus0 target 5 lun 0 (pass1,sa1) <BHTi Quad 7 4.25> at scbus0 target 6 lun 0 (pass2,ch0) < > at scbus0 target -1 lun -1 () scbus1 on ahc0 bus 0: <SEAGATE ST34555W 0930> at scbus1 target 1 lun 0 (pass3,da0) < > at scbus1 target -1 lun -1 () scbus2 on ahc1 bus 0: < > at scbus2 target -1 lun -1 () scbus3 on ahc2 bus 0: < > at scbus3 target -1 lun -1 () scbus-1 on xpt0 bus 0: < > at scbus-1 target -1 lun -1 (xpt0) On my system, group operator needs read and write privileges on pass0, pass1, pass2 and xpt0. You'll need the corresponding passthrough (pass) devices for at least your tape drive and changer. Anytime you see SCSI devices referred to as a bus:target:lun string on FreeBSD, the application is probably using the pass and xpt devices. For more information, there are the manpages: man 4 pass man 4 xpt Hope this helps, -Ben -- Benjamin Lewis Thank goodness modern convenience is a Database Analyst/Programmer thing of the remote future. Purdue University Computing Center -- Pogo, by Walt Kelly [EMAIL PROTECTED]
