On Mon, Jan 25, 1999 at 04:13:00PM +0800, Steve Vertigan wrote:

> > This should not matter. As long as a user has write access in their
> > Maildir, they can even delete root-owned files.
> 
> This is very strange.  I telnetted in to port 110 and couldn't even
> issue a RETR
> on a message, although I could get the results from LIST ok.  After
> transferring
> ownership to the user I could RETR and assume the user successfully
> retrieved and
> deleted as I didn't hear any more about it.  The Maildir directory is owned by
> the correct user and group...

If the message file is owned by root, then it needs to have a minimum mode
of 444, ie. read access for everyone. In your case, the root-owned files
most likely have modes that don't allow the user to read the file. Remember
that qmail-pop3d runs under the permissions of the user, not root. You are
however able to list the file, since the ordinary user has the permissions
to list the contents of a directory, even if the files themselves are not
readable by that user. Basically, if you are that ordinary user and you can
use a pager like more or less to view the file, then you will be able to
RETR the message. If not, the permissions need to be checked.

-- 
Anand

Reply via email to