Re: Bug in "du", needing current directory

[email protected] (Bob Proulx) Thu, 22 May 2003 19:08:17 -0600
Newsgroups gmane.comp.gnu.fileutils.bugs
Message-ID <[email protected]>
John F Meinel Jr wrote:
> I found an odd bug in using du

Thanks for the report!

> du: cannot open current directory: Permission denied
> 
> My workaround was to give read permissions to /root, but that really 
> isn't a preferred method.

As a different workaround which avoids the need to give read
permissions to /root, in your cron task could you cd / before running
your command?

  (cd / && du /etc)

Bob