Openning attach - denied permission
Marcelo Laia
marcelolaia at gmail.com
Tue Oct 22 11:46:01 UTC 2019
On Fri, Jan 18, 2019 at 10:06:29AM -0200, Marcelo Laia wrote:
> I starting got a "Not possible to open the file
> "file:///home/user/.mutt/temp/doc2.pdf”."
>
> "File open Error home/user/.mutt/temp/doc2.pdf: permission denied.
>
> What is the workaround?
For anyone search this issue in the future in this old thread.
That issue is related to apparmor package
> Does "grep -R mutt /etc/apparmor.d/" return anything?
root at marcelo:~# grep -R mutt /etc/apparmor.d/
/etc/apparmor.d/abstractions/wayland: owner
/run/user/*/{mesa,mutter,sdl,wayland-cursor,weston,xwayland}-shared-* rw,
/etc/apparmor.d/abstractions/X: owner /run/user/*/.mutter-Xwaylandauth.* r,
/etc/apparmor.d/abstractions/private-files: deny @{HOME}/.mutt** mrwkl,
/etc/apparmor.d/abstractions/ubuntu-console-email: /usr/bin/mutt Cx -> sanitized_helper,
root at marcelo:~#
After make changes in /etc/apparmor.d/abstractions/private-files, that issue go
alone.
This changes was done:
# systemctl stop apparmor
I need to edit /etc/apparmor.d/abstractions/private-files
# nano /etc/apparmor.d/abstractions/private-files
# privacy violations (don't audit files under $HOME otherwise get a
# lot of false positives when reading contents of directories)
deny @{HOME}/.*history mrwkl,
deny @{HOME}/.fetchmail* mrwkl,
# deny @{HOME}/.mutt** mrwkl,
deny @{HOME}/.viminfo* mrwkl,
deny @{HOME}/.*~ mrwkl,
deny @{HOME}/.*.swp mrwkl,
deny @{HOME}/.*~1~ mrwkl,
deny @{HOME}/.*.bak mrwkl,
and comment the line deny @{HOME}/.mutt** mrwkl,
Need to restart apparmor
# systemctl start apparmor
The issue go alone and all work perfectly!
More details are in this thread:
http://lists.mutt.org/pipermail/mutt-users/Week-of-Mon-20191014/001288.html
--
Marcelo
More information about the Mutt-users
mailing list