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
 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to