sqwebmail can't write to /var/cache/sqwebmail, permissions broken
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
courier (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
reproduced on a fresh install of Ubuntu 18.04.1 LTS
sqwebmail:
Installed: 5.9.0+0.
After user logs in to webmail a failure is reported in mail.err:
sqwebmaild: maildircache: Cache create failure - unable to create file /var/cache/
this is caused by /var/cache/
rwx------ 2 courier courier 4096 Sep 23 17:57 sqwebmail/
during configure step of sqwebmail the owner of the cache folder is specified. Upstream uses "bin" here:
https:/
So either change during build to use a different owner, e.g. "courier", or change the owner of the /var/cache/
As a workaround manually changing the owner to "bin" makes webmail to properly use the cache.
The problem still exists in Ubuntu 20.04.3 LTS.
Workaround of changing owner of cache as described will still restore functionality of sqwebmaild.
As upstream still uses "bin", I suggest to change the owner of the cache folder.