On Thursday, 6 May 2021 10:00:43 AEST Trent W. Buck via luv-talk wrote:
> I have a very simple trick here.
> 
> If (say) /srv/backup/removable-hdd is always meant to be a mountpoint,
> 
>     umount         /srv/backup/removable-hdd  # make sure you edit the
> parent filesystem, not the root of the mounted filesystem sudo chmod   0
> /srv/backup/removable-hdd  # stop non-root users writing to it sudo chattr
> +i /srv/backup/removable-hdd  # stop root writing to it mount         
> /srv/backup/removable-hdd  # put things back how they should be

That's a good trick.

Another thing I've done is mount a tmpfs on /mnt with a small number for 
size=.  That means that people or scripts can create /mmt/whatever to mount 
things but if anyone tries to copy gigs of data there it won't happen.

-- 
My Main Blog         http://etbe.coker.com.au/
My Documents Blog    http://doc.coker.com.au/



_______________________________________________
luv-main mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to