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 😉
Related Contents:
- How do I clear the “s” permission on a directory in Linux?
- Need to fix file permissions in a user’s home directory
- Best way to prevent the root system filling up when a mount fails?
- fstab and cifs mounting, possible to store authentication information outside of fstab?
- How do I specify a label/path with spaces in /etc/fstab? [closed]
- How do I use sudo to redirect output to a location I don’t have permission to write to? [closed]
- How can I set up & run PhantomJS on Ubuntu?
- Make $JAVA_HOME easily changable in Ubuntu [closed]
- connect to host localhost port 22: Connection refused
- Skipping acquire of configured file ‘main/binary-i386/Packages’
- Merge multiple JPGs into single PDF in Linux
- Understanding user file ownership in docker: how to avoid changing permissions of linked volumes
- Xvfb failed start error
- Why is “chmod -R 777 /” destructive?
- Command line program to test DHCP service
- Damaged /vmlinuz and /initrd.img symbolic links after Kernel uninstall
- How do I permanently disable Linux’s console screen saver, system-wide?
- Explain in Plain English about Entropy Available
- What are the advantages/disadvantages of hard versus soft mounts in UNIX?
- How To Backup “crontab -e” Files?
- Checkpoint VPN Linux Client
- I can’t delete files ‘rm: cannot remove X Read-only file system’
- Differences between /dev/sda and /dev/sda1
- Cannot connect to Linux Samba share from Windows 10
- How can I set full premissions to a user in a specified dir?
- netstat -ntap doesn’t show pid/process name for some connections?
- Reload OpenVPN config without restarting the process
- ack-grep to ack in ubuntu
- How can I map iostat device names to LVM /dev/mapper/XXX names?
- How to remove bad disk from LVM2 with the less data loss on other PVs?
- What backup solution you use for linux servers [closed]
- How to grant temporary access to server?
- Write-only remote backup solutions to prevent backup deletion by hackers [closed]
- Unable to get the SSH access for a new user
- Any way to run Linux as a Virtual Machine on top of Windows so can have best of both worlds?
- rsync –iconv option on Mac not working (sync from remote Linux server to local Mac)
- What creates CPU I/O wait but no disk operations?
- upstart does not see my job
- CPU0 is swamped with eth1 interrupts
- Can’t mount nfs volume – time out
- bind9 proper recursion setup
- Run text file as commands in Bash
- How to use sed to extract substring
- change PATH permanently on Ubuntu [closed]
- Where does Eclipse look for eclipse.ini under Linux
- Error when using Git credential helper with gnome-keyring as Sudo
- Monit daemon – error connecting to the monit daemon
- Can I use Homebrew on Ubuntu?
- How to make all files under a directory world readable on linux? [closed]
- Unable to establish SSL connection upon wget on Ubuntu 14.04 LTS