LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 04-16-2009, 08:18 AM   #1
depam
Member
 
Registered: Sep 2005
Posts: 861

Rep: Reputation: 30
Is there an issue with changing /tmp permission?


Hi,

Is there an issue with changing the /tmp permission to 755? Will any database or application go down if that's the case?

Thanks.
 
Old 04-16-2009, 08:25 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Yes. If the /tmp directory is not world-writable, only root can store temporary files inside it. A lot of user's applications will complain about that. Why should you change /tmp permissions, anyway?
 
Old 04-16-2009, 08:33 AM   #3
depam
Member
 
Registered: Sep 2005
Posts: 861

Original Poster
Rep: Reputation: 30
That's the problem. I have accidentally changed the /tmp directory file permission. Just confirming cause some problem arises after doing that. Even the database went down. I just thought since it is a temp directory shouldn't have any issue.
 
Old 04-16-2009, 08:46 AM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Yes, change it back to 1777 (rwxrwxrwt)
 
Old 04-16-2009, 08:52 AM   #5
depam
Member
 
Registered: Sep 2005
Posts: 861

Original Poster
Rep: Reputation: 30
Yes.have changed it already. Got less than an hour downtime..I never knew this thing and it is a lesson to learn..Maybe its better for database and apps to put temporary files on other filesystem. But I am thinking that is not possible.
 
Old 04-16-2009, 11:21 AM   #6
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
Originally Posted by depam View Post
Yes.have changed it already. Got less than an hour downtime..I never knew this thing and it is a lesson to learn..Maybe its better for database and apps to put temporary files on other filesystem. But I am thinking that is not possible.
Nope. The /tmp directory is a Unix standard. You can't change it. The developers know that /tmp is a place existing in all *nix systems to put temporary files. It has been established as a rule at the beginning and never will change.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
what is the default permission and ownership of /var/tmp/.oracle RMLinux Linux - Newbie 2 11-27-2008 07:23 PM
Changing permission issue sungjoo.kim Linux - Newbie 3 11-06-2008 03:19 PM
Strange permission issue. Problems changing ownership. ExCIA Linux - Newbie 6 05-26-2005 04:17 AM
permission denied writing to /tmp rsteelman Linux - General 7 02-06-2005 07:10 PM
original /tmp permission redhatnoob Linux - General 2 11-13-2003 08:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 02:34 AM.

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
Open Source Consulting | Domain Registration