LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-29-2004, 09:16 PM   #1
InfluxDan
LQ Newbie
 
Registered: Apr 2004
Posts: 1

Rep: Reputation: 0
/TMP Security question


Hello,

I am Using Redhat 8.0 on my server. Is there a way to prevent a DDos attack from comming in or being initiated from the /tmp folder. I have this folder Chmodded and locked down. Any way that someone can give me some advice on this?

Thanks in advance.

InfluxDan
 
Old 04-30-2004, 02:57 AM   #2
iainr
Member
 
Registered: Nov 2002
Location: England
Distribution: Ubuntu 9.04
Posts: 631

Rep: Reputation: 30
I assume you mean preventing a normal user from filling up /tmp
, or from copying files into tmp that could then do something nasty. For the first risk, I'm not aware of any easy solution, but there are a few things you can do. For the second, as long as the sticky bit is set and umasks are set correctly, /tmp should be OK.

Things you can try :
- Have /tmp as a separate filesystem and set the nosuid and nodev flags.
- Have users use a different tmp directory by default (TMPDIR=~/tmp, for example).
- Have your key applications use their own tmp directory so /tmp filling up doesn't cause them a problem.
- Place a limit on the max. file size a user can create (ulimit) - nothing stopping a user creating lots of small files though.
- Set up alerting so you get an email/page/... if /tmp goes over (for example) 80% full.
 
  


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
tmp folder question synaptical Linux - General 8 08-31-2003 03:10 PM
/tmp question BajaNick Linux - General 6 08-03-2003 08:22 PM
a question about /tmp ludwig W Linux - General 21 04-25-2003 11:38 PM
Newbie question - /tmp /var/tmp Mr happy Linux - Security 3 01-27-2003 01:03 PM
tmp security vcheah Linux - Security 2 12-30-2002 03:06 AM

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

All times are GMT -5. The time now is 08:06 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