LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
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
 
LinkBack Search this Thread
Old 11-17-2009, 04:36 PM   #1
Skillz
Member
 
Registered: Sep 2007
Posts: 192

Rep: Reputation: 31
Remove noexec from tmp directory


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

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
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 04:39 PM.
 
Old 11-17-2009, 04:40 PM   #3
vorbote
Member
 
Registered: Aug 2009
Location: 2600 meters closer to the stars
Posts: 49

Rep: Reputation: 4
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, 02:36 AM   #4
Skillz
Member
 
Registered: Sep 2007
Posts: 192

Original Poster
Rep: Reputation: 31
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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are 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 08:17 AM
How to remove /tmp/.X0-lock? Frank Soranno Debian 3 04-23-2007 06:00 PM
noexec on /tmp but still stefaandk Linux - Security 10 03-05-2007 07:02 AM
reinstall --> /tmp & noexec issue Fuel Slackware 1 11-30-2004 11:43 PM
remove /tmp/.X0-lock ??? ragates Linux - Newbie 1 09-22-2003 07:36 AM


All times are GMT -5. The time now is 12:47 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration