Prevent the possiblity of writing data to an unmounted mount point directory

Argomenti vari di carattere sistemistico
Post Reply
daniele
Posts: 342
Joined: 04 Mar 2009, 13:59

Prevent the possiblity of writing data to an unmounted mount point directory

Post by daniele »

ORIGINAL ARTICLE: https://serverfault.com/questions/57025 ... -directory
ALL RIGHTS RESERVED TO THE AUTHOR(S) OF THE ORIGINAL ARTICLE(S)


I go a step further and always set the attributes of my mountpoint directories to immutable using chattr.

This is accomplished with chattr +i /mountpoint (with the mount unmounted).

This would error-out on new write activity and also protects the mount point in other situations.

But I suppose you could use the mountpoint command, too ;)
Post Reply