I compiled amanda...tried rpm but something strange happened. (Can't
remember what now)

Actually when I checked my /etc/passwd file $HOME for amanda was set to
/var/lib/amanda, so I changed it to /home/amanda. The entry in passwd now
looks like this:
amanda:x:33:6:Amanda user:/home/amanda:/bin/bash

I had already changed the ownership on the amanda directory...in fact
/usr/local/etc shows ownership to amanda and group ownership disk (group 6,
to which amanda belongs)

Actually I ran an
$su amanda -c "touch tapetype" 
which did create a tapetype file in my /usr/local/etc/amanda/backup dir.
Then I was able to run my 
$su amanda -c "amlabel backup testtape01"
bash: /root/.bashrc: Permission denied
rewinding, reading label testtape01
rewinding, writing label testtape01, checking label, done.

I now have a tapelist file in my /usr/local/etc/amanda/backup file...so it
appears to have worked...but how do I get rid of this bash permission denied
message???



-----Original Message-----
From: Joshua Baker-LePain [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 28, 2001 4:03 PM
To: Rebecca Pakish
Cc: '[EMAIL PROTECTED]'
Subject: Re: Still a newbie...but getting somewhere...amlabel troubles


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

Reply via email to