I am trying to package amanda 3.5 for Debian.  Where the user for
backups is "backup" and during the packaging I have to manually set
the correct permissions of the binaries, specially group owner and
setuid bits.


For example my VM for testing amanda have:

backup@debian-at:~$ ls -alF /usr/lib/amanda/
total 892
drwxr-xr-x  4 root root    4096 Oct 14 15:13 ./
drwxr-xr-x 36 root root    4096 Oct 14 14:36 ../
-rwxr-xr-x  1 root root    6683 Oct 13 17:23 amadmin_perl*
-rwxr-xr-x  1 root root   39160 Oct 13 17:23 amandad*
-rw-r--r--  1 root root     935 Oct 13 17:23 amanda-sh-lib.sh
-rwxr-xr-x  1 root root   40835 Oct 13 17:23 ambackupd*
-rwsr-xr--  1 root backup 10232 Oct 13 17:23 ambind*
-rw-r--r--  1 root root     135 Oct 13 17:23 amcat.awk
-rwxr-xr-x  1 root root   11613 Oct 13 17:23 amcheck-device*
-rwxr-xr-x  1 root root   10243 Oct 13 17:23 amdumpd*
-rwxr-xr-x  1 root root    3804 Oct 13 17:23 amidxtaped*
-rwxr-xr-x  1 root root   47184 Oct 13 17:23 amindexd*
-rwxr-xr-x  1 root root    2448 Oct 13 17:23 amlogroll*
-rwxr-xr-x  1 root root   48136 Oct 13 17:23 amndmjob*
-rw-r--r--  1 root root   20523 Oct 13 17:23 amplot.awk
-rw-r--r--  1 root root    3400 Oct 13 17:23 amplot.g
-rw-r--r--  1 root root    3410 Oct 13 17:23 amplot.gp
-rwxr-xr-x  1 root root   26616 Oct 13 17:23 amtrmidx*
-rwxr-xr-x  1 root root   14328 Oct 13 17:23 amtrmlog*
drwxr-xr-x  2 root root    4096 Oct 14 15:13 application/
-rwsr-xr--  1 root backup 18424 Oct 13 17:23 calcsize*
-rwxr-xr-x  1 root root    2672 Oct 13 17:23 chunker*
-rwxr-xr-x  1 root root   96336 Oct 13 17:23 driver*
-rwxr-xr-x  1 root backup 63672 Oct 13 17:23 dumper*
-rwsr-xr--  1 root backup 10232 Oct 13 17:23 killpgrp*
-rwxr-xr-x  1 root root   52232 Oct 13 17:23 ndmjob*
-rwxr-xr-x  1 root root   10232 Oct 13 17:23 noop*
-rwxr-xr-x  1 root root    5024 Oct 13 17:23 patch-system*
-rwxr-xr-x  1 root backup 67712 Oct 13 17:23 planner*
-rwxr-xr-x  1 root root    1556 Oct 13 17:23 restore*
drwxr-xr-x  8 root root    4096 Oct 14 15:13 rest-server/
-rwsr-xr--  1 root backup 10232 Oct 13 17:23 rundump*
-rwsr-xr--  1 root backup 14328 Oct 13 17:23 runtar*
-rwxr-xr-x  1 root root   43080 Oct 13 17:23 selfcheck*
-rwxr-xr-x  1 root root   60840 Oct 13 17:23 sendbackup*
-rwxr-xr-x  1 root root   18432 Oct 13 17:23 senddiscover*
-rwxr-xr-x  1 root root   55736 Oct 13 17:23 sendsize*
-rwxr-xr-x  1 root root    2918 Oct 13 17:23 taper*
-rwxr-xr-x  1 root root   10232 Oct 13 17:23 teecount*


But I got this warning from amcheck:

backup@debian-at:~$ amcheck DailySet1
'/etc/amanda/DailySet1/amanda.conf', line 71: warning: Keyword usetimestamps is 
deprecated.
Amanda Tape Server Host Check
-----------------------------
ERROR: program /usr/lib/amanda/ambind: wrong permission
NOTE: Holding disk '/hdisk/DailySet1': 2478080 KB disk space available, using 
2375680 KB
'/etc/amanda/DailySet1/amanda.conf', line 71: warning: Keyword usetimestamps is 
deprecated.
slot 2: volume 'DailySet1-02'
Will write to volume 'DailySet1-02' in slot 2.
NOTE: skipping tape-writable test
Server check took 0.282 seconds
Amanda Backup Client Hosts Check
--------------------------------
Client check: 1 host checked in 0.153 seconds.  0 problems found.
(brought to you by Amanda 3.5)




Is the permissions of the binaries in /usr/lib/amanda correct?

Kind regards
Jose M Calhariz



-- 
--
        O tempo e a imagem movel da eternidade imovel.
                --  Platao 428 ± 348 a.C.; filosofo grego.

Reply via email to