Hi.
On Sun, 25 May 2014 15:55:16 -0700
pe...@easthope.ca wrote:
> if [ -e MP/Mounted ]; then
A user could unmount the filesystem somehow, create an arbitrary file
there, and therefore fool your script.
Better check /proc/mounts for the needed filesystem (and its'
attributes) here.
> if [ "$
~/MP is the mount point for a removable store which contains
sentinel Mounted.
~$ mount | grep MP
/dev/sda1 on /home/peter/MP type ext2
(rw,nosuid,nodev,relatime,errors=continue,user_xattr,acl,user=peter)
peter@dalton:~$ ls -l MP/Mounted
-rw-rw-r-- 1 peter peter 11 May 25 15:45 MP/Mounted
Th
2 matches
Mail list logo