permission denied

Joe Reid jreid at vnet.net
Mon Aug 4 12:27:46 UTC 2014


jreid owns everything under ~jreid/mail:

$ ls -la
total 104
drwx------  20 jreid    staff         23 Aug  4 07:22 ./
drwxr-xr-x  12 jreid    staff         24 Aug  4 07:21 ../
drwxrwx---   4 jreid    staff          7 Jul 29 14:47 .imap/
-rw-------   1 jreid    staff         94 Aug  3 12:24 .subscriptions
-rw-------   1 jreid    staff        108 Aug  3 22:16 .subscriptions.lock
[...]
drwxr-x---   3 jreid    staff          6 Aug  4 07:19 2012/
drwxr-x---   3 jreid    staff          6 Jul 29 16:12 2013/
drwxr-x---   3 jreid    staff          6 Aug  3 17:43 2014/
drwxr-x---   6 jreid    staff          7 May 21  2012 Mail_archive/
-rw-r-----   1 jreid    staff        536 Aug  4 07:22 Trash

$ ls -la 2012/.imap/Received/
total 8
drwxr-x---   2 jreid    staff          3 Aug  4 07:19 ./
drwxr-x---   3 jreid    staff          3 Aug  3 12:25 ../
-rw-r-----   1 jreid    staff         40 Aug  4 07:19 
dovecot.index.log.newlock


On 8/4/2014 2:57 AM, Steffen Kaiser wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Sun, 3 Aug 2014, Joe Reid wrote:
>
>> The time stamp on the .subscriptions.lock file gets updated every 
>> time I try to make a change.  To test I edited .subscriptions by hand 
>> and forced Thunderbird to try to subscribe something and I got access 
>> to the folder I added, so I presume it is reading the file correctly.
>>
>> Permissions on~jreid/mail is 0700, the existing .subscriptions file 
>> is 0640 and .subscriptions.lock file is 0600.  all the files are 
>> owned by me and their group is my primary group (not mail).
>>
>> $ /opt/csw/bin/doveconf -n
>> # 2.2.12: /etc/opt/csw/dovecot/dovecot.conf
>> # OS: SunOS 5.11 i86pc
>> disable_plaintext_auth = no
>> first_valid_uid = 100
>> mail_access_groups = mail
>> mail_location = mbox:~/mail:INBOX=/var/share/mail/%u
> [cut]
>> passdb {
>>  driver = pam
>> }
>> userdb {
>>  driver = passwd
>> }
>
>> $ doveadm log errors
>> [...]
>> Aug 03 16:47:02 imap(jreid): Error: 
>> rename(/home/jreid/mail/.subscriptions.lock, 
>> /home/jreid/mail/.subscriptions) failed: Permission denied
>> Aug 03 16:52:49 imap(jreid): Error: 
>> rename(/home/jreid/mail/2012/.imap/Received/dovecot.index.log.newlock, /home/jreid/mail/2012/.imap/Received/dovecot.index.log) 
>> failed: Permission denied
>
> Who owns /home/jreid/mail, .subscriptions.lock file  and 
> /home/jreid/mail/2012/.imap/Received ?
>
> Please send a ls -la of /home/jreid/mail.
>
> - -- Steffen Kaiser
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (GNU/Linux)
>
> iQEVAwUBU9880Xz1H7kL/d9rAQI4kgf7B7nn7mzp8WHqYkD7azYToI7oYxIpoO1e
> bi29AjlWNqTkwrxmCyhKbUqwaGan+ZbxN1xRDxsh8q7SoN3p6uF3ot1os2vBrX/1
> UuSsxKEohi7/9S6x/eN9a/gKbRsKfb8wMUwBIW4HlWJgLuaywCqwl1WOk78RpddG
> zUPsH3W63X/8lx84n6ZBqwddCYp/R4IYsQdyQMpMCjpj0DzTqniWhtd2i3ZiyaaF
> dOhaWgcjTZ1cjr4iJnZniylHkuS4NsFZejSpM1An41aq4b0b51FHSGG8R3ze+sop
> LVTctxCK7U+/sO296Lv5Lu49ndAlx0H7KViD9RKFWzaPtgQ+vDADZw==
> =k6IU
> -----END PGP SIGNATURE-----


-- 
joe



More information about the dovecot mailing list