I am trying to modify the file /etc/ImageMagick-6/policy.xml
using emacs, but emacs tells me that the buffer (which must mean
the file) is read-only. An ls shows this:
-rwxr-xr-x 1 root root 3419 Nov 11 2019 /etc/ImageMagick-6/policy.xml
after I tried with chmod +rwx.
What an I do to get permission to edit this file? I need that in
order to put some eps'es together, with the command
montage -mode concatenate ... At the moment it refuses to do it.
I am trying to modify the file /etc/ImageMagick-6/policy.xml
using emacs, but emacs tells me that the buffer (which must mean
the file) is read-only. An ls shows this:
-rwxr-xr-x 1 root root 3419 Nov 11 2019 /etc/ImageMagick-6/policy.xml
Dieter Britz <dieterhansbritz@gmail.com> writes:
I am trying to modify the file /etc/ImageMagick-6/policy.xml
using emacs, but emacs tells me that the buffer (which must mean
the file) is read-only. An ls shows this:
-rwxr-xr-x 1 root root 3419 Nov 11 2019 /etc/ImageMagick-6/policy.xml
Run sudoedit /etc/ImageMagick-6/policy.xml
It's the system provided way to safely edit system files without a need
to run a massive editor as root.
Dieter Britz <dieterhansbritz@gmail.com> writes:
I am trying to modify the file /etc/ImageMagick-6/policy.xml using
emacs, but emacs tells me that the buffer (which must mean the file) is
read-only. An ls shows this:
-rwxr-xr-x 1 root root 3419 Nov 11 2019 /etc/ImageMagick-6/policy.xml
Run sudoedit /etc/ImageMagick-6/policy.xml
It's the system provided way to safely edit system files without a need
to run a massive editor as root.
On Fri, 16 Jul 2021 17:04:27 +0300, Anssi Saari wrote:
Dieter Britz <dieterhansbritz@gmail.com> writes:
I am trying to modify the file /etc/ImageMagick-6/policy.xml usingRun sudoedit /etc/ImageMagick-6/policy.xml
emacs, but emacs tells me that the buffer (which must mean the file) is
read-only. An ls shows this:
-rwxr-xr-x 1 root root 3419 Nov 11 2019 /etc/ImageMagick-6/policy.xml
It's the system provided way to safely edit system files without a need
to run a massive editor as root.
Great, that worked. It didn't solve the problem, which I have
not described. I am trying to join eps files, and got advice to
use. e.g.,
~/square/ststplots> montage -mode concatenate -tile 2x1 1.eps 2.eps
output 3.eps
This elicits the response, after doing the edit (i.e. changing "none"
to "read|write" in the coder part of the file for EPS)
montage-im6.q16: not authorized `1.eps' @ error/constitute.c/ReadImage/
412.
montage-im6.q16: not authorized `2.eps' @ error/constitute.c/ReadImage/
412.
montage-im6.q16: unable to open image `output': No such file or directory
@ error/blob.c/OpenBlob/2701.
montage-im6.q16: unable to open image `output': No such file or directory
@ error/blob.c/OpenBlob/2701.
montage-im6.q16: no decode delegate for this image format `' @ error/ constitute.c/ReadImage/504.
montage-im6.q16: missing an image filename `3.eps' @ error/montage.c/ MontageImageCommand/1795.
What do I do next?
<!-- disable ghostscript format types -->
<policy domain="coder" rights="read|write" pattern="PS" /> <policy
domain="coder" rights="read|write" pattern="PS2" />
<policy domain="coder" rights="read|write" pattern="PS3" />
<policy domain="coder" rights="read|write" pattern="EPS" />
<policy domain="coder" rights="read|write" pattern="PDF" />
<policy domain="coder" rights="read|write" pattern="XPS" />
And then it works.
https://i.postimg.cc/NFKYxW7c/montage-eps.gif
Paul
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 292 |
Nodes: | 16 (2 / 14) |
Uptime: | 209:18:19 |
Calls: | 6,618 |
Files: | 12,168 |
Messages: | 5,317,175 |