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

回覆文章
yehlu
Site Admin
文章: 3245
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

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

文章 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
回覆文章

回到「CentOS」