1 頁 (共 1 頁)

Linux Security: Mount /tmp With nodev, nosuid, and noexec Options

發表於 : 2018-03-28 14:10:52
yehlu
https://www.cyberciti.biz/faq/linux-add ... artitions/

代碼: 選擇全部

## Bind /var/tmp to /tmp
 mount -o rw,noexec,nosuid,nodev,bind /tmp/ /var/tmp/

## Remount /tmp
 mount -o remount,noexec,nosuid,nodev /tmp

## Remount /dev/shm
 mount -o remount,noexec,nosuid,nodev /dev/shm