On Fri, 16 Feb 2007 10:44:09 -0500 [EMAIL PROTECTED] wrote: > On Fri, Feb 16, 2007 at 10:06:56AM -0500, Celejar wrote: > > On Fri, 16 Feb 2007 09:34:14 -0500 > > [EMAIL PROTECTED] wrote: > > > > [snip] > > > > > > Speaking of learning, you shouldn't be running 'du' and 'dpkg -l' with > > > > sudo; they'll run just fine as a normal user. > > > > > > Won't they have a hard time with directories and files that are not > > > readable by the normal user? > > > > No. dpkg just queries /var/lib/dpkg/status, which is world readable, > > and 'du' works perfectly well on non-readable files: > > > > ~$ cat /etc/shadow > > cat: /etc/shadow: Permission denied > > ~$ du /etc/shadow > > 1 /etc/shadow > > And does du also work with nonreadable directories? > > -- hendrik
You were right and I was wrong about directories (I've ceratinly seen those 'permission denied' du messages). But since your message mentioned files in addition to directories, I carelessly fired off my response :). Celejar -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]