On Friday 01 November 2002 08:37 am, Joshua Baker-LePain wrote: > On Thu, 31 Oct 2002 at 4:37pm, Orion Poplawski wrote > > > runtar: error [must be invoked by root] > > > > Looks like amanda was compiled with --with-user=root? I'll try running > > as root on the client... > > Not necessarily. You can find out exactly what configure options were > used by looking in /tmp/amanda/amandad*debug. Note that the runtar > executable needs to be owned by root and setuid (as do several other > programs -- this is done properly when you do 'make install' as root).
Here's the top of amandad*debug, but I'm not user what tells me how it was compiled (CLIENT_LOGIN?). Also, runtar is setuid root (and most of the progs in /libexec), so I'm not sure why the complaint about having to run as root. amandad: debug 1 pid 179764 ruid 0 euid 0 start time Fri Nov 1 00:50:44 2002 amandad: version 2.4.2p2 amandad: build: VERSION="Amanda-2.4.2p2" amandad: BUILT_DATE="Wed Oct 24 13:34:08 PDT 2001" amandad: BUILT_MACH="IRIX humu 6.5 10040656 IP22" amandad: CC="sgifwcompile -e -q -nostdinc -I. -I/xlv1/freeware/2002.Feb/amanda/2.4.2p2-root/usr/freeware/include -I/xlv1/freeware/2002.Feb/amanda/2.4.2p2-root/usr/include -O3 -OPT:Olimit=0:space=ON -DEBUG:optimize_space=on -TENV:X=1 -CG:unique_exit=on -OPT:IEEE_arithmetic=1:roundoff=0:wrap_around_unsafe_opt=off -n32 -mips3 -nostdlib -L/xlv1/freeware/2002.Feb/amanda/2.4.2p2-root/usr/freeware/lib32 -L/xlv1/freeware/2002.Feb/amanda/2.4.2p2-root/usr/lib32 -woff 1009,1014,1107,1110,1116,1164,1185,1188,1204,1230,1233 -Wl,-woff,85,-woff,84 -rpath /usr/freeware/lib32 -- /hosts/babylon.engr/usr/dist/new_toolroots/6.5/products/freeware/latest/ptoolroot/usr/bin/cc" amandad: paths: bindir="/usr/freeware/bin" sbindir="/usr/freeware/bin" amandad: libexecdir="/usr/freeware/libexec" amandad: mandir="/usr/freeware/man" AMANDA_TMPDIR="/tmp/amanda" amandad: AMANDA_DBGDIR="/tmp/amanda" amandad: CONFIG_DIR="/usr/freeware/etc/amanda" amandad: DEV_PREFIX="/dev/dsk/" RDEV_PREFIX="/dev/rdsk/" amandad: DUMP="/sbin/dump" RESTORE="/sbin/restore" amandad: XFSDUMP="/sbin/xfsdump" XFSRESTORE="/sbin/xfsrestore" amandad: GNUTAR="/usr/freeware/bin/tar" amandad: COMPRESS_PATH="/usr/sbin/gzip" amandad: UNCOMPRESS_PATH="/usr/sbin/gzip" MAILER="/usr/sbin/Mail" amandad: listed_incr_dir="/var/amanda/gnutar-lists" amandad: defs: DEFAULT_SERVER="amanda-server" DEFAULT_CONFIG="DailySet1" amandad: DEFAULT_TAPE_SERVER="amanda-server" amandad: DEFAULT_TAPE_DEVICE="/dev/null" HAVE_MMAP HAVE_SYSVSHM amandad: LOCKING=POSIX_FCNTL SETPGRP_VOID DEBUG_CODE amandad: AMANDA_DEBUG_DAYS=4 BSD_SECURITY USE_AMANDAHOSTS amandad: CLIENT_LOGIN="root" FORCE_USERID HAVE_GZIP amandad: COMPRESS_SUFFIX=".gz" COMPRESS_FAST_OPT="--fast" amandad: COMPRESS_BEST_OPT="--best" UNCOMPRESS_OPT="-dc"