|
发表于 2010-11-5 09:43:47
|
显示全部楼层
man mount 看到掛載選項的解說,當中有這幾條:
FILESYSTEM INDEPENDENT MOUNT OPTIONS
....
exec Permit execution of binaries.
[color="Red"]noexec [color="Blue"]Do not allow direct execution of any binaries on the mounted
filesystem. (Until recently it was possible to run binaries
anyway using a command like /lib/ld*.so /mnt/binary. This trick
fails since Linux 2.4.25 / 2.6.0.)
....
[color="red"]user Allow an ordinary user to mount the filesystem. The name of the
mounting user is written to mtab so that he can unmount the
filesystem again. [color="Blue"]This option implies the options [color="Red"]noexec,
nosuid, and nodev (unless overridden by subsequent options, as
in the option line user,exec,dev,suid).
....
[color="Red"]users Allow every user to mount and unmount the filesystem. [color="Blue"]This
option implies the options [color="Red"]noexec, nosuid, and nodev (unless
overridden by subsequent options, as in the option line
users,exec,dev,suid).
試檢查所在分區的掛載選項,如果被設成 noexec,管你是 root 也無法執行文件。 |
|