RE: Still a newbie...but getting somewhere...amlabel troubles

2001-08-29 Thread Rebecca Pakish

Hi Paul...
I tried that, and I got
bash:/root/.bashrc:Permission denied



-Original Message-
From: Bort, Paul [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 28, 2001 3:50 PM
To: 'Rebecca Pakish'; '[EMAIL PROTECTED]'
Subject: RE: Still a newbie...but getting somewhere...amlabel troubles


In the same directory as amanda.conf, try this: 

su -c amanda touch tapetype

This will create a blank tapetype file that amanda can store info about
tapes in.


 -Original Message-
 From: Rebecca Pakish [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, August 28, 2001 3:46 PM
 To: '[EMAIL PROTECTED]'
 Subject: Still a newbie...but getting somewhere...amlabel troubles
 
 
 Hi all...
 
 Thank you for all of your help on the ./tapetype issue. I 
 learned a lot
 about my drive from the Seagate site (they have excellent 
 documentation as
 far as I'm concerned) got my hardware compression turned off.
 
 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)
 
 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
 rewinding, reading label, not an amanda tape
 rewinding, writing label testape01, checking labelamlabel: 
 couldn't write
 tapelist: Permission denied
 
 And then I looked for the file called tapelist that the 
 amlabel man page
 said it would write to, and I couldn't find it to change it's 
 permissions.
 When I went back to re-execute the amlabel command so I could 
 write down the
 error, this is what happens:
 $su amanda -c amlabel backup testtape01
 bash: /root.bashrc: Permission denied
 rewinding, reading label testtape01
 rewinding, writing label testtape01, checking labelamlabel: 
 couldn't write
 tapelist: Permission denied
 
 Which, I have to admit, for a girl who just learned how to 
 tar on Friday and
 rpm yesterday, I'm pretty jacked to see that it read the 
 label as testtape01
 that second time! But of course, it still isn't right. oops.
 
 Can someone please help point me in the right direction?
 Thanks!!
 Rebecca
 
 
 



RE: Still a newbie...but getting somewhere...amlabel troubles

2001-08-29 Thread Rebecca Pakish

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




RE: Still a newbie...but getting somewhere...amlabel troubles

2001-08-29 Thread Joshua Baker-LePain

On Wed, 29 Aug 2001 at 10:49am, Rebecca Pakish wrote

 $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???

OK, I think I see what's going on.  You're running that su as root, right?
Well, it's not giving amanda (the user) its own environment, i.e. $HOME
is still set to /root (root's home).  So, the user amanda, in starting
its shell to run the command, tries to parse $HOME/.bashrc, and can't,
because it doesn't have permission.  Try this:

su - amanda -c amlabel backup testtape01

This will give amanda its environment.

-- 
Joshua Baker-LePain
Department of Biomedical Engineering
Duke University




RE: Still a newbie...but getting somewhere...amlabel troubles

2001-08-29 Thread Raoul De Guchteneere

Sorry about the preceeding message, I hit the wrong button.

On 29 Aug 2001, at 10:29, Rebecca Pakish wrote:

 Hi Paul...
 I tried that, and I got
 bash:/root/.bashrc:Permission denied
 
 

This probably means that the home directory of the amanda user is 
/root, where he has no read/write permission.  Try to change to 
another (/home/amanda for instance) in /etc/passwd.  Don't forget to 
create the directory if it doesn't exist and set the permission 
correctly.

As for the couldn't write tapelist: Permission denied message, 
it probably is also a permission problem : be sure that the directory 
/usr/local/etc/amanda and all the subdirectories belong to amanda
You can do a chown -R amanda amanda as root in the directory 
/usr/local/etc to be sure.

Raoul

 -Original Message-
 From: Bort, Paul [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, August 28, 2001 3:50 PM
 To: 'Rebecca Pakish'; '[EMAIL PROTECTED]'
 Subject: RE: Still a newbie...but getting somewhere...amlabel troubles
 
 
 In the same directory as amanda.conf, try this: 
 
 su -c amanda touch tapetype
 
 This will create a blank tapetype file that amanda can store info about
 tapes in.
 
 
  -Original Message-
  From: Rebecca Pakish [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, August 28, 2001 3:46 PM
  To: '[EMAIL PROTECTED]'
  Subject: Still a newbie...but getting somewhere...amlabel troubles
  
  

[snip]

  
  What's happening...
  $su amanda -c amlabel backup testtape01
  bash: /root/.bashrc: Permission denied
  rewinding, reading label, not an amanda tape
  rewinding, writing label testape01, checking labelamlabel: 
  couldn't write
  tapelist: Permission denied
  




RE: Still a newbie...but getting somewhere...amlabel troubles

2001-08-29 Thread Raoul De Guchteneere

On 29 Aug 2001, at 10:29, Rebecca Pakish wrote:

 Hi Paul...
 I tried that, and I got
 bash:/root/.bashrc:Permission denied
 
 
 
 -Original Message-
 From: Bort, Paul [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, August 28, 2001 3:50 PM
 To: 'Rebecca Pakish'; '[EMAIL PROTECTED]'
 Subject: RE: Still a newbie...but getting somewhere...amlabel troubles
 
 
 In the same directory as amanda.conf, try this: 
 
 su -c amanda touch tapetype
 
 This will create a blank tapetype file that amanda can store info about
 tapes in.
 
 
  -Original Message-
  From: Rebecca Pakish [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, August 28, 2001 3:46 PM
  To: '[EMAIL PROTECTED]'
  Subject: Still a newbie...but getting somewhere...amlabel troubles
  
  
  Hi all...
  
  Thank you for all of your help on the ./tapetype issue. I 
  learned a lot
  about my drive from the Seagate site (they have excellent 
  documentation as
  far as I'm concerned) got my hardware compression turned off.
  
  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)
  
  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
  rewinding, reading label, not an amanda tape
  rewinding, writing label testape01, checking labelamlabel: 
  couldn't write
  tapelist: Permission denied
  
  And then I looked for the file called tapelist that the 
  amlabel man page
  said it would write to, and I couldn't find it to change it's 
  permissions.
  When I went back to re-execute the amlabel command so I could 
  write down the
  error, this is what happens:
  $su amanda -c amlabel backup testtape01
  bash: /root.bashrc: Permission denied
  rewinding, reading label testtape01
  rewinding, writing label testtape01, checking labelamlabel: 
  couldn't write
  tapelist: Permission denied
  
  Which, I have to admit, for a girl who just learned how to 
  tar on Friday and
  rpm yesterday, I'm pretty jacked to see that it read the 
  label as testtape01
  that second time! But of course, it still isn't right. oops.
  
  Can someone please help point me in the right direction?
  Thanks!!
  Rebecca
  
  
  





RE: Still a newbie...but getting somewhere...amlabel troubles

2001-08-28 Thread Bort, Paul

In the same directory as amanda.conf, try this: 

su -c amanda touch tapetype

This will create a blank tapetype file that amanda can store info about
tapes in.


 -Original Message-
 From: Rebecca Pakish [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, August 28, 2001 3:46 PM
 To: '[EMAIL PROTECTED]'
 Subject: Still a newbie...but getting somewhere...amlabel troubles
 
 
 Hi all...
 
 Thank you for all of your help on the ./tapetype issue. I 
 learned a lot
 about my drive from the Seagate site (they have excellent 
 documentation as
 far as I'm concerned) got my hardware compression turned off.
 
 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)
 
 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
 rewinding, reading label, not an amanda tape
 rewinding, writing label testape01, checking labelamlabel: 
 couldn't write
 tapelist: Permission denied
 
 And then I looked for the file called tapelist that the 
 amlabel man page
 said it would write to, and I couldn't find it to change it's 
 permissions.
 When I went back to re-execute the amlabel command so I could 
 write down the
 error, this is what happens:
 $su amanda -c amlabel backup testtape01
 bash: /root.bashrc: Permission denied
 rewinding, reading label testtape01
 rewinding, writing label testtape01, checking labelamlabel: 
 couldn't write
 tapelist: Permission denied
 
 Which, I have to admit, for a girl who just learned how to 
 tar on Friday and
 rpm yesterday, I'm pretty jacked to see that it read the 
 label as testtape01
 that second time! But of course, it still isn't right. oops.
 
 Can someone please help point me in the right direction?
 Thanks!!
 Rebecca
 
 
 



Re: Still a newbie...but getting somewhere...amlabel troubles

2001-08-28 Thread Joshua Baker-LePain

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





RE: Still a newbie...but getting somewhere...amlabel troubles

2001-08-28 Thread Rebecca Pakish

I'm not sure why this posted again...sorry everyone...I've already had some
responses I'm going to look into tomorrow.
:)

-Original Message-
From: Rebecca Pakish [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 28, 2001 2:46 PM
To: '[EMAIL PROTECTED]'
Subject: Still a newbie...but getting somewhere...amlabel troubles


Hi all...

Thank you for all of your help on the ./tapetype issue. I learned a lot
about my drive from the Seagate site (they have excellent documentation as
far as I'm concerned) got my hardware compression turned off.

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)

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
rewinding, reading label, not an amanda tape
rewinding, writing label testape01, checking labelamlabel: couldn't write
tapelist: Permission denied

And then I looked for the file called tapelist that the amlabel man page
said it would write to, and I couldn't find it to change it's permissions.
When I went back to re-execute the amlabel command so I could write down the
error, this is what happens:
$su amanda -c amlabel backup testtape01
bash: /root.bashrc: Permission denied
rewinding, reading label testtape01
rewinding, writing label testtape01, checking labelamlabel: couldn't write
tapelist: Permission denied

Which, I have to admit, for a girl who just learned how to tar on Friday and
rpm yesterday, I'm pretty jacked to see that it read the label as testtape01
that second time! But of course, it still isn't right. oops.

Can someone please help point me in the right direction?
Thanks!!
Rebecca