Cheat Sheets

System - Readonly FS

Description

There should be no read-only local filesystems

Check Script: system-readonly-fs.sh

#!/bin/bash

mounts=$(egrep "^/.*( ro,|,ro )" /proc/mounts | grep -v iso9660 | cut -d " " -f 2) if [ "$mounts" == "" ]; then result_ok else result_warning "Read-only mount points found: $mounts" fi
Comment on Disqus