Diese Nachricht wurde eingewickelt um DMARC-kompatibel zu sein. Die
eigentliche Nachricht steht dadurch in einem Anhang.

This message was wrapped to be DMARC compliant. The actual message
text is therefore in an attachment.
--- Begin Message ---
Hi,

I tried to lock down /dev/shm via a small script:

#!/bin/bash
# shamelessly snaffled from other FAI script
error=0; trap 'error=$(($?>$error?$?:$error))' ERR # save maximum error code
grep -qF '/dev/shm' /etc/fstab || echo -e '\n\n
tmpfs /dev/shm tmpfs defaults,noexec,nodev,nosuid,seclabel 0 0\n' >> /etc/fstab
# shamelessly snaffled from other FAI script
exit $error

It runs (according to the log), exits w/o error, but the changes to fstab don't 
happen.

What am I doing wrong?

Cheers,
Tink


Sent with Proton Mail secure email.

--- End Message ---

Antwort per Email an