From: Olaf Titz (s_titz@ira.uka.de)
Date: 03/31/93


From: s_titz@ira.uka.de (Olaf Titz)
Subject: Re: 0.99p7A: doexpire calling df says cannot read mounted fs ?
Date: 31 Mar 1993 12:51:16 GMT

In article <C4prtq.2r5@isys-hh.hanse.de> tthemann@isys-hh.hanse.de (Tim Themann) writes:

> > /usr/local/lib/news/bin/expire/doexpire &
> >as user news gave me:
> >df: cannot read mounted filesystems: permission denied

[proposed half-fix:]

> change /usr/local/lib/news/bin/spacefor, line 56 form
> df $arg | awk "BEGIN { nf = 4 ; nr = 2 }
> to /usr/bin/df $arg | awk "BEGIN { nf = 4 ; nr = 2 }

The fix is to make /bin/df setuid root, which it *has* to be to work
correctly. (Or just remove it.) /usr/bin/df is setuid root so the
problem doesn't surface with a /usr/bin:bin path but with a
/bin:/usr/bin path (as in the cnews scripts) it becomes a problem.
At least that was the reason for me (SLS late January)

Olaf

-- 
        olaf titz     o       olaf@bigred.ka.sub.org      voice@49-721-60439
  comp.sc.student    _>\ _         s_titz@ira.uka.de          praetorius@irc
karlsruhe germany   (_)<(_)      uknf@dkauni2.bitnet        happy linux user
what good is a photograph of you? everytime i look at it it makes me feel blue