On Tue, 28 Aug 2001 at 2:46pm, Rebecca Pakish wrote
> Been working on the amanda.conf file, feel like I'm prepared to label my
> first tape and dump something! Again, running RH 7.1 on a Dell 333 with a
> SCSI Seagate external and just a 90mm tape for starters. (Had to download
> the mt command from the rpm site, but everything seems to be effectively
> communicating)
Did you compile amanda or install the RPM?
> In amanda.conf:
> labelstr "^testtape[0-9][0-9]"
> (**amanda.conf is in /usr/local/etc/amanda/backup**)
>
> What's happening...
> $su amanda -c "amlabel backup testtape01"
> bash: /root/.bashrc: Permission denied
This says that the $HOME of the user amanda specified in /etc/passwd is
/root, but the amanda user does not have read access to that directory.
I would fix this by giving amanda a different $HOME (like /home/amanda).
> rewinding, reading label, not an amanda tape
> rewinding, writing label testape01, checking labelamlabel: couldn't write
> tapelist: Permission denied
The file 'tapelist' is created after the first successful amlabel, which
is why you don't have one yet. It lives in the same directory as the
amanda.conf and disklist for the configuration -- in this case
/usr/local/etc/amanda/backup. So, amanda must not have write permissions
in that directory. The easiest way to fix that would be
'chown -R amanda /usr/local/etc/amanda', which will give the user amanda
ownership of /usr/local/etc/amanda and all the files and directories
inside it.
--
Joshua Baker-LePain
Department of Biomedical Engineering
Duke University