Amanda-Users

amanda client on mac os x

2004-10-28 13:30:01
Subject: amanda client on mac os x
From: Michael Weiser <michael AT weiser.dinsnail DOT net>
To: amanda-users AT amanda DOT org
Date: Thu, 28 Oct 2004 19:24:39 +0200
Hello,

I'm trying to integrate my iBook into an existing amanda setup with
FreeBSD-CURRENT as server and client and another client running Fedora
Core 1. The iBook has Mac OS X 10.3 with latest patches and lots of fink
packages.

I built my own fink package for compiling amanda and everything went
astonishingly smoothly until I tried to do an actual dump. amcheck works
fine but sendsize of the amdump logs in /tmp/amanda:

sendsize: debug 1 pid 641 ruid 101 euid 101: start at Thu Oct 28 18:46:51 2004
sendsize: version 2.4.4p2
sendsize[641]: time 0.026: waiting for any estimate child: 1 running
sendsize[643]: time 0.027: calculating for amname '/', dirname '/', spindle -1
sendsize[643]: time 0.028: getting size via gnutar for / level 0
sendsize[643]: time 0.044: spawning /usr/local/fink/libexec/runtar in pipeline
sendsize[643]: argument list: /usr/local/fink/bin/gtar --create --file
/dev/null --directory / --one-file-system --listed-incremental
/usr/local/fink/var/amanda/gnutar-lists/brithombar.weiser.dinsnail.net.__0.new
--sparse --ignore-failed-read --totals --exclude-from
/tmp/amanda/sendsize._.20041028184651.exclude .
sendsize[643]: time 0.047: error [exec /usr/local/fink/libexec/runtar: 
Permission denied]
sendsize: time 0.047: pid 644 finish time Thu Oct 28 18:46:51 2004
sendsize[643]: time 0.048: sendsize: error [exec 
/usr/local/fink/libexec/runtar: Permission denied]
sendsize[643]: time 0.049: .....
sendsize[643]: estimate time for / level 0: 0.005
sendsize[643]: no size line match in /usr/local/fink/bin/gtar output for "/"
sendsize[643]: .....
sendsize[643]: estimate size for / level 0: -1 KB
sendsize[643]: time 0.049: waiting for /usr/local/fink/bin/gtar "/" child
sendsize[643]: time 0.049: after /usr/local/fink/bin/gtar "/" wait
sendsize[643]: time 0.050: done with amname '/', dirname '/', spindle -1
sendsize[641]: time 0.050: child 643 terminated normally
sendsize: time 0.051: pid 641 finish time Thu Oct 28 18:46:51 2004

The problem seems to be that runtar can't be executed. But its
permissions are set correctly:

-rwsr-x---  1 root  amanda  16976 10 Oct 22:36 /usr/local/fink/libexec/runtar

On further investigation I found that suid programs, su and sudo calls
on Mac OS X don't get their proper primary groups set. When doing an su
to amanda with primary group amanda, any file created will have
amanda:wheel as owner:

root@brithombar:/tmp # ls -la a
ls: a: No such file or directory
root@brithombar:/tmp # su - amanda -c "touch /tmp/a"
root@brithombar:/tmp # ls -la a
-rw-r--r--  1 amanda  wheel  0 28 Oct 19:21 a

Now I understand this is rather a Mac OS X problem than an amanda
problem but I wonder if anyone has come accros this before. Does the
fact that the filesystem is HFS+ have anything to do with it? Is there a
way to work around this for amanda so that is doesn't depend on runtar
being suid root and executable by group amanda?

Thanks in advance.
-- 
bye, Michael

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