Bug#3117: Tob needs whoami
Raul Miller writes:
Raul> Perhaps tob doesn't need to be run as root?
I think it does. Otherwise you might not be able to read directories that
you'd want to back up.
Raul> If it does (say, because some utility needs to be able to set
Raul> gid/uid) maybe use that utility to see if it can do the right thing?
Raul> [Or, if that's too complex, use /bin/chown]
I think
if [ "$NEEDROOT" = "yes" ] ; then
if [ $UID -ne 0 ]; then
error "You need to be root to run tobs!"
fi
fi
is most appropriate as it still allows the sys admin to set NEEDROOT to no in
/etc/tob/tob.rc to allow for, say, partial backups below $HOME.
I closed the bug and released tob-0.14-1 yesterday.
--
Dirk Eddelb"uttel http://qed.econ.queensu.ca/~edd
Reply to: