You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Separate /tmp With Noexec, Nodev and Nosuid Mount Options

Announcement
111
Views
3
Comments
in Linux 3 comments

Applies To:

Oracle Cloud Infrastructure - Version N/A and later

Linux x86-64

Goal:

In OCI /tmp does not have any separate mount point. This document explains how to create a separate mount point for /tmp and mount it with noexec, nodev and nosuid options for security reasons.

Solution:

Here /tmp is created as a file and mounted as a partition using loop mount option. Make sure there is enough free space under / to spare a 2G file for /tmp. Run df -h command to verify the free space.

Use dd command to create a file of 2G. Change the count if you want to increase the size.

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!