Re: Bug#3117: Tob needs whoami
Dirk Eddelbuettel writes:
> Good point. If I try to replace the
> if [ 'whoami' != root ] ; then
> by another test for not being root, what should I use? Will _everybody_
> have set $USER to their idendity when they either login as, or su to, root,
> under every possible shell?
>
> Does anybody have another idea or bash trick to this reliably without
> requiring /usr/bin/* or /usr/sbin/* stuff?
How about setting NEEDROOT to 'no'? In case of a system backup I'm root
anyway and why not letting a user use tob to backup his own directory?
Michael
--
Michael Meskes | _____ ________ __ ____
| / ___// ____/ // / / __ \___ __________
meskes@informatik.rwth-aachen.de | \__ \/ /_ / // /_/ /_/ / _ \/ ___/ ___/
| ___/ / __/ /__ __/\__, / __/ / (__ )
Use Debian Linux! | /____/_/ /_/ /____/\___/_/ /____/
Reply to: