LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-17-2009, 03:36 PM   #1
Skillz
Member
 
Registered: Sep 2007
Posts: 249

Rep: Reputation: 32
Remove noexec from tmp directory


How do I remove the noexec from the tmp directory, temporarily?
 
Old 11-17-2009, 03:38 PM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
To set the noexec
Code:
mount -o remount,noexec /tmp
to set it back
Code:
mount -o remount,exec /tmp

Last edited by repo; 11-17-2009 at 03:39 PM.
 
1 members found this post helpful.
Old 11-17-2009, 03:40 PM   #3
vorbote
Member
 
Registered: Aug 2009
Location: 2,625 m of paranoia above sea level
Distribution: Arch Linux, Debian GNU/Linux, Fedora, Void Linux, FreeBSD, OpenBSD and Win10 (sigh)
Posts: 76

Rep: Reputation: 10
Quote:
Originally Posted by Skillz View Post
How do I remove the noexec from the tmp directory, temporarily?
Assuming that you have a separate tmp partition (how else would it be mounted noexec), this ought to work: "mount -o remount,exec /tmp". To reenable noexec, use the same command with, well..., noexec.
 
Old 11-21-2009, 01:36 AM   #4
Skillz
Member
 
Registered: Sep 2007
Posts: 249

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by repo View Post
To set the noexec
Code:
mount -o remount,noexec /tmp
to set it back
Code:
mount -o remount,exec /tmp
Thanks,

This worked only I had to do the commands in reverse order.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't login, says tmp directory full but tmp file is empty! Could be linked to MySQL? bethanlowder Fedora 7 09-25-2009 07:17 AM
How to remove /tmp/.X0-lock? Frank Soranno Debian 3 04-23-2007 05:00 PM
noexec on /tmp but still stefaandk Linux - Security 10 03-05-2007 06:02 AM
reinstall --> /tmp & noexec issue Fuel Slackware 1 11-30-2004 10:43 PM
remove /tmp/.X0-lock ??? ragates Linux - Newbie 1 09-22-2003 06:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration