On Thursday 09 August 2007, Mark Sansome wrote:
>A reader of this list replied to me off-list and made this comment:
>> On Tue, 7 Aug 2007, Mark Sansome wrote:
>> > The problem is that (running procmail as root) if I follow the
>> > instructions I have found on various setup guides (including the
>> > SA wiki) I am supposed to put "DROPPRIVS=yes" into
>> > /etc/procmailrc. If I do that SA works fine, but procmail is
>> > unable to put mail for my other users in their /var/spool/mail
>> > directories.
>>
>> Everybody should own and have write permission to their own mailbox...
>
>Well, naturally. I thought...
>
>And then I checked. Just to be sure...
>
>This looks OK:
>[EMAIL PROTECTED] ~]# ls -l /var/spool/mail/
>total 53240
>-rw-rw---- 1 admin  mail        0 Jun 11 20:55 admin
>-rw------- 1 clamav mail    76386 Apr 22 17:04 clamav
>-rw-rw---- 1 wifey  mail 44024789 Aug  7 10:48 wifey
>-rw-rw---- 1 mark   mail     4020 Aug  7 17:11 mark
>-rw------- 1 root   root 10316397 Aug  7 04:40 root
>-rw-rw---- 1 son1   mail    24127 Apr  7 11:03 son1
>[EMAIL PROTECTED] ~]#
>
>So does this:
>[EMAIL PROTECTED] ~]$ ls -l $MAIL
>-rw-rw---- 1 mark mail 4020 Aug  7 17:11 /var/spool/mail/mark
>
>But this looks wrong...:
>[EMAIL PROTECTED] ~]$ su wifey
>Password:

You missed the su - above, which will give you wifey's rights, paths and 
permissions.

>[EMAIL PROTECTED] mark]$ ls -l $MAIL
>-rw-rw---- 1 mark mail 4020 Aug  7 17:11 /var/spool/mail/mark
>[EMAIL PROTECTED] mark]$ mail
>/var/spool/mail/mark: Permission denied
>
>(same with my other "users")
>
>Where is this access controlled from and how do I change it? I've tried
>man mail and googling for it but so far I've drawn a blank...
>
>Many thanks for your help...
>
>Mark



-- 
Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Fat people of the world unite, we've got nothing to lose!

Reply via email to