Can I mark a folder as mountpoint-only?
Posted
by
Collin
on Super User
See other posts from Super User
or by Collin
Published on 2012-06-28T15:10:46Z
Indexed on
2012/06/28
15:18 UTC
Read the original article
Hit count: 314
I have a folder ~/nas
which I usually use sshfs
to mount a network drive on. Today, I didn't realize the share hadn't been mounted yet, and copied some data into it. It took me a bit to realize that I'd just copied data into my own local drive rather than the network share. Is there some way to mark in the system that this folder is supposed to be a mount point, and to not let anyone copy data into it?
I tried the permissions solution here: How to only allow a program to write to a directory if it is mounted?, but if I don't have write access I also can't mount anything to it.
© Super User or respective owner