mounting devices not allow binaries
what command will mount device /device/sdal to the mount point /mnt/usb with a filesystem type of ext 3 and not allow binaries execute开发者_开发百科d from the device
mount -t ext3 -o noexec /dev/sda1 /mnt/usb
That should do it:
mount -t ext3 /dev/sda1 /mnt/usb -o noexec
The noexec
option should do this. If you're using the user
option, noexec
is implied.
http://linux.die.net/man/8/mount
精彩评论