All,
I am new to amanda, read the faq, read the archives etc but cannot find
solutions to my problems which are mostly related to permission problems.
I have configured amanda with as suggested in the INSTALL file:
./configure --with-user=bin and --with-group=disk
I ran make and make install and no errors where reported.
Then I made a dir under /usr/local/etc:
drwxr-x--- 3 bin disk 4096 Jun 20 18:26 amanda
and placed:
-rwxr-x--- 1 bin disk 5374 Jun 20 20:41 amanda.conf
-rwxr-x--- 1 bin disk 30 Jun 20 20:03 disklist
-rwxr-x--- 1 bin disk 45 Jun 20 19:28 root_exclude.gtar
and followed the instructions as in the INSTALL file and the chapter
about amanda at "http://www.backupcentral.com/"
Now I can see the tape when doing:
su bin
mt -f /dev/nst0 status
so the permission on /dev/nst0 are correct.
Should amcheck ONLY be executed from root?
Executing from bin gives me an error:
[431] [piquet:root] /usr/local/sbin #ROOT# > su bin
sh-2.04$ /usr/local/sbin/amcheck DailySet1
sh: /usr/local/sbin/amcheck: Permission denied
But when I run it as root I get the error telling me I run it as root!
Amanda Tape Server Host Check
-----------------------------
ERROR: running as user "root" instead of "bin"
NOTE: skipping tape-writable test
Tape DailySet1-01 label ok
Why does it skip the writetest?
permissions on amcheck:
452] [piquet:root] /usr/local/sbin #ROOT# >ls -la
total 2896
drwxr-xr-x 2 root root 4096 Jun 20 21:14 .
drwxr-xr-x 20 root root 4096 Jun 20 10:14 ..
-rwsr-x--- 1 root disk 393508 Jun 20 21:14 amcheck
Now changing the permissions to "chown bin amcheck" I can execute but get other errors:
Amanda Tape Server Host Check
-----------------------------
ERROR: program /usr/local/libexec/planner: not executable
NOTE: skipping tape-writable test
Tape DailySet1-01 label ok
Server check took 0.071 seconds
So to try this thing I want to backup stuff on the host were the
tape is located. In disklist to get this running (finetuning later) I have:
localhost / root-tar
and I get:
Amanda Backup Client Hosts Check
--------------------------------
WARNING: localhost: selfcheck request timed out. Host down?
Client check: 1 host checked in 30.004 seconds, 1 problem found
Even if I change it to the real name/ipaddress it doesnt work.
I filled the ipaddress into the xinted.conf file and added all
the stuff in there!
I checked everything (as suggested in the FAQ -amcheck- too), I added
every single entry, the debug files are created and one shows:
amcheck: debug 1 pid 2706 ruid 1 euid 1 start time Wed Jun 20 21:50:15 2001
amcheck: dgram_bind: socket bound to 0.0.0.0.33149
amcheck: pid 2706 finish time Wed Jun 20 21:50:45 2001
I can list the socket:
[494] [piquet:root] /tmp/amanda #ROOT# >netstat -a | grep -i amanda
tcp 0 0 *:amandaidx *:* LISTEN
There are NO error messages reported in the syslog and when restarting
xinetd the expected message show up too (no errors).
Why cant I back up the root dir on the host the tape is on????
--
186,262 miles/second : Not just a good idea, it's the LAW.
| __, Jobst Schmalenbach, [EMAIL PROTECTED], Technical Director|
| _ _.--'-n_/ Barrett Consulting Group P/L & The Meditation Room P/L |
|-(_)------(_)= +61 3 9532 7677, POBox 277, Caulfield South, 3162, Australia|