Amanda-Users

Re: I "accidentally" ran chown and need help

2008-12-03 15:07:28
Subject: Re: I "accidentally" ran chown and need help
From: Chad Kotil <ckotil AT grnoc.iu DOT edu>
To: mlb AT imparisystems DOT com
Date: Wed, 3 Dec 2008 14:29:49 -0500
Here are my permissions. Notice all the files owned by root have the setUID permission set.

[ckotil@backup amanda]$ ls -alrth
total 1.5M
-rw-r--r-- 1 amandabackup disk  956 Jun 25 18:11 amanda-sh-lib.sh
-rwxr-xr-x 1 amandabackup disk  48K Jun 25 18:11 amandad
drwxr-xr-x 3 root         root 4.0K Jun 25 18:11 ..
-rwsr-x--- 1 root         disk 9.9K Jun 25 18:11 rundump
-rwxr-xr-x 1 amandabackup disk  11K Jun 25 18:11 noop
-rwsr-x--- 1 root         disk  13K Jun 25 18:11 killpgrp
-rwsr-x--- 1 root         disk  29K Jun 25 18:11 calcsize
-rwxr-xr-x 1 amandabackup disk 8.6K Jun 25 18:11 versionsuffix
-rwxr-xr-x 1 amandabackup disk  73K Jun 25 18:11 sendsize
-rwxr-xr-x 1 amandabackup disk  77K Jun 25 18:11 sendbackup
-rwxr-xr-x 1 amandabackup disk  43K Jun 25 18:11 selfcheck
-rwsr-x--- 1 root         disk  14K Jun 25 18:11 runtar
-rwxr-xr-x 1 amandabackup disk 5.1K Jun 25 18:11 patch-system
drwxr-xr-x 2 root         root 4.0K Jun 25 18:11 application
-rwxr-xr-x 1 amandabackup disk 107K Jun 25 18:11 driver
-rwxr-xr-x 1 amandabackup disk  21K Jun 25 18:11 amtrmlog
-rwxr-xr-x 1 amandabackup disk  25K Jun 25 18:11 amtrmidx
-rwxr-xr-x 1 amandabackup disk  14K Jun 25 18:11 amlogroll
-rwxr-xr-x 1 amandabackup disk  84K Jun 25 18:11 amindexd
-rwxr-xr-x 1 amandabackup disk 132K Jun 25 18:11 taper
-rwsr-x--- 1 root         disk 103K Jun 25 18:11 planner
-rwsr-x--- 1 root         disk  65K Jun 25 18:11 dumper
-rwxr-xr-x 1 amandabackup disk  39K Jun 25 18:11 chunker
-rwxr-xr-x 1 amandabackup disk  16K Jun 25 18:11 amcleanupdisk
-rwxr-xr-x 1 amandabackup disk 267K Jun 25 18:11 chg-scsi
-rwxr-xr-x 1 amandabackup disk 6.8K Jun 25 18:11 chg-rth
-rwxr-xr-x 1 amandabackup disk 4.0K Jun 25 18:11 chg-rait
-rwxr-xr-x 1 amandabackup disk 1.7K Jun 25 18:11 chg-null
-rwxr-xr-x 1 amandabackup disk  12K Jun 25 18:11 chg-multi
-rwxr-xr-x 1 amandabackup disk 4.8K Jun 25 18:11 chg-mtx
-rwxr-xr-x 1 amandabackup disk  14K Jun 25 18:11 chg-mcutil
-rwxr-xr-x 1 amandabackup disk 6.8K Jun 25 18:11 chg-manual
-rw-r--r-- 1 amandabackup disk 4.0K Jun 25 18:11 chg-lib.sh
-rwxr-xr-x 1 amandabackup disk 5.1K Jun 25 18:11 chg-juke
-rwxr-xr-x 1 amandabackup disk 7.3K Jun 25 18:11 chg-iomega
-rwxr-xr-x 1 amandabackup disk 7.9K Jun 25 18:11 chg-disk
-rwxr-xr-x 1 amandabackup disk 9.7K Jun 25 18:11 chg-chs
-rwxr-xr-x 1 amandabackup disk  12K Jun 25 18:11 chg-chio
-rwxr-xr-x 1 amandabackup disk  32K Jun 25 18:11 amidxtaped
-rw-r--r-- 1 amandabackup disk 3.3K Jun 25 18:11 amplot.gp
-rw-r--r-- 1 amandabackup disk 3.3K Jun 25 18:11 amplot.g
-rw-r--r-- 1 amandabackup disk  18K Jun 25 18:11 amplot.awk
-rw-r--r-- 1 amandabackup disk  135 Jun 25 18:11 amcat.awk
drwxr-xr-x 3 root         root 4.0K Jun 25 18:11 .
-rwxr-xr-x 1 amandabackup disk  40K Nov 19 16:14 chg-zd-mtx


On Dec 3, 2008, at 2:13 PM, Matt Burkhardt wrote:

I'm trying to set up a backup for a client machine running 8.10 Ubuntu using an Ubuntu 8.04 server running 2.6.1b1 - but the version on the client machine is an earlier one.

Anyway, I fat fingered something and changed the ownerships on all the files in /usr/libexec/amanda and I'm now getting an error message that says

Amanda Backup Client Hosts Check
--------------------------------
ERROR: 192.168.1.102: [/usr/libexec/amanda/runtar is not SUID root]
Client check: 1 host checked in 0.091 seconds.  1 problem found.

Right now, I have that set to root:disk - I basically copied the same permissions from the /usr/libexec on the server.  Here's the directory with the owners/groups

ls -lh /usr/libexec/amanda
total 988K
-rwxr-xr-x 1 root root  29K 2008-07-30 19:29 amandad
-rw-r--r-- 1 root root  957 2008-07-30 19:28 amanda-sh-lib.sh
-rw-r--r-- 1 root root  135 2008-07-30 19:29 amcat.awk
-rwxr-xr-x 1 root root 6.6K 2008-07-30 19:29 amcleanupdisk
-rwxr-xr-x 1 root root  19K 2008-07-30 19:29 amidxtaped
-rwxr-xr-x 1 root root  43K 2008-07-30 19:29 amindexd
-rwxr-xr-x 1 root root 7.2K 2008-07-30 19:29 amlogroll
-rw-r--r-- 1 root root  18K 2008-07-30 19:29 amplot.awk
-rw-r--r-- 1 root root 3.3K 2008-07-30 19:29 amplot.g
-rw-r--r-- 1 root root 3.3K 2008-07-30 19:29 amplot.gp
-rwxr-xr-x 1 root root  11K 2008-07-30 19:29 amtrmidx
-rwxr-xr-x 1 root root 9.9K 2008-07-30 19:29 amtrmlog
drwxr-xr-x 2 root root 4.0K 2008-08-02 10:18 application
-rwxr-xr-- 1 root disk  15K 2008-07-30 19:29 calcsize
-rwxr-xr-x 1 root root  12K 2008-07-30 19:29 chg-chio
-rwxr-xr-x 1 root root 9.7K 2008-07-30 19:29 chg-chs
-rwxr-xr-x 1 root root 7.9K 2008-07-30 19:29 chg-disk
-rwxr-xr-x 1 root root 7.3K 2008-07-30 19:29 chg-iomega
-rwxr-xr-x 1 root root 5.1K 2008-07-30 19:29 chg-juke
-rw-r--r-- 1 root root 4.4K 2008-07-30 19:29 chg-lib.sh
-rwxr-xr-x 1 root root 6.8K 2008-07-30 19:29 chg-manual
-rwxr-xr-x 1 root root  14K 2008-07-30 19:29 chg-mcutil
-rwxr-xr-x 1 root root 4.8K 2008-07-30 19:29 chg-mtx
-rwxr-xr-x 1 root root  12K 2008-07-30 19:29 chg-multi
-rwxr-xr-x 1 root root 1.7K 2008-07-30 19:29 chg-null
-rwxr-xr-x 1 root root 4.0K 2008-07-30 19:29 chg-rait
-rwxr-xr-x 1 root root 6.8K 2008-07-30 19:29 chg-rth
-rwxr-xr-x 1 root root 196K 2008-07-30 19:29 chg-scsi
-rwxr-xr-x 1 root root  40K 2008-07-30 19:29 chg-zd-mtx
-rwxr-xr-x 1 root root  22K 2008-07-30 19:29 chunker
-rwxr-xr-x 1 root root  71K 2008-07-30 19:29 driver
-rwxr-xr-x 1 root disk  39K 2008-07-30 19:29 dumper
-rwxr-xr-- 1 root disk 6.8K 2008-07-30 19:29 killpgrp
-rwxr-xr-x 1 root root 5.8K 2008-07-30 19:29 noop
-rwxr-xr-x 1 root root 5.1K 2008-07-30 19:28 patch-system
-rwxr-xr-x 1 root disk  60K 2008-07-30 19:29 planner
-rwxr-xr-- 1 root disk 4.9K 2008-07-30 19:29 rundump
-rwxr-xr-- 1 root disk 7.8K 2008-07-30 19:29 runtar
-rwxr-xr-x 1 root root  27K 2008-07-30 19:29 selfcheck
-rwxr-xr-x 1 root root  48K 2008-07-30 19:29 sendbackup
-rwxr-xr-x 1 root root  51K 2008-07-30 19:29 sendsize
-rwxr-xr-x 1 root root  49K 2008-07-30 19:29 taper
-rwxr-xr-x 1 root root 4.1K 2008-07-30 19:29 versionsuffix

Thanks!


Matt Burkhardt, MSTM
President
Impari Systems, Inc.
502 Fairview Avenue
Frederick, MD  21701
mlb AT imparisystems DOT com
www.imparisystems.com
(301) 682-7901



Chad E. Kotil
Global Research NOC




<Prev in Thread] Current Thread [Next in Thread>