“noexec” and “nosuid”

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat “noexec” and “nosuid”
# 1  
Old 07-29-2011
Tools “noexec” and “nosuid”

I would like mimic "noexec” and “nosuid” on /tmp security when its a seperate file system BUT I would like to hang /tmp directly off of / "root". Any suggestions would be helpful.

Last edited by fpmurphy; 07-29-2011 at 07:12 PM.. Reason: color/font removed
# 2  
Old 09-13-2011
you can create a file for tmp. Format it using tempfs and mount it. Now you can enable "noexec” and “nosuid” on it
Login or Register to Ask a Question

Previous Thread | Next Thread

3 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Noexec on /home

Hi all, I read in some documents that it is advised to use the mount option noexec also on /home. I can live with a nosuid but since I am writing scripts in /home and also execute them for testing etc., it is very annoying if I would be forced to copy the scripts all the time to /tmp for... (5 Replies)
Discussion started by: zaxxon
5 Replies

2. Shell Programming and Scripting

Debugging a script with noexec

Newbie question. I cannot get "set -n" or "set -noexec on" to work on Linux or AIX! According to the man page and what I read online, it should inform me of syntax errors without executing commands in your script. So, can someone PLEASE explain why this does not work? ... (2 Replies)
Discussion started by: fgoyti
2 Replies

3. Solaris

nosuid on Solaris 8

Hi, Can anyone help on the following "Mount file system as “nosuid” to prevent accidental and unauthorised execution of software especially Setuid utility" Question 1) Does this refer only to local mount or remote mount or both 2) What exactly nosuid mean . 3) How does it impact ,... (1 Reply)
Discussion started by: civic2005
1 Replies
Login or Register to Ask a Question