Interview Prep/Linux/Permissions, ownership, SELinux and mounts

An application running as a non-root user can't write core dumps or create files larger than 1 GB: `File size limit exceeded (core dumped)`.

AdvancedTroubleshootingPermissions, ownership, SELinux and mounts
Answer

Likely causes → RLIMIT_FSIZE is set (via /etc/security/limits.conf fsize, shell ulimit -f, or the systemd unit LimitFSIZE=).

Diagnose →

cat /proc/<PID>/limits | grep -i 'file size'
grep -r fsize /etc/security/limits.conf /etc/security/limits.d/
systemctl show app -p LimitFSIZE

Fix → Remove or raise the limit in the right place (LimitFSIZE=infinity for systemd services; limits.conf only applies to PAM sessions), then restart.

Prevent → Know that systemd services ignore limits.conf; set limits in the unit.

All Linux questions Roadmap: Linux

More on Permissions, ownership, SELinux and mounts