Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-05-2006, 04:11 AM
|
#1
|
LQ Newbie
Registered: Aug 2005
Location: Egypt
Distribution: Suse and Red hat
Posts: 14
Rep:
|
securing /tmp
i'm looking for way to secure my /tmp directory
i have fedora core 2 work as web server with apache
sometimes crackers puts binary files in my /tmp directory
also i find some processes runs as http and when i restart the serveice i found that these prcesses are still working.
i want to find something to monitor my /tmp directory and to take action.
|
|
|
01-05-2006, 06:58 AM
|
#2
|
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908
|
du -h /tmp to see how large your /tmp is.
Create a partition large enough to hold /tmp, then edit /etc/fstab to show the new partition. Mount it noexec to prevent executable files from running in /tmp.
mv the current /tmp into the new partition.
|
|
|
01-05-2006, 02:28 PM
|
#3
|
Senior Member
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552
Rep:
|
The problem is not with /tmp. You need to investigate what web content on your servers are allowing people to upload to your system. Secure your applications. Creating a larger /tmp without fixing the hole is only giving people more storage space on your system.
Last edited by stickman; 01-05-2006 at 02:31 PM.
|
|
|
01-07-2006, 07:00 AM
|
#4
|
LQ Newbie
Registered: Aug 2005
Location: Egypt
Distribution: Suse and Red hat
Posts: 14
Original Poster
Rep:
|
sometimes i find that the load average is high then when i make #top -c to show what are the most processes that consumes more cpu cycles and memory,i find normal processes nobody with http and when i restart the httpd service i found that everything is cool and the load average reduced.
and sometimes when i stop the service httpd i find running http service and i don't know what is it?
i think that it is some of processes that crackers wants to execute from /tmp.
|
|
|
01-07-2006, 12:31 PM
|
#5
|
Moderator
Registered: May 2001
Posts: 29,417
|
Like Stickman says, harden the box. If I understand correctly what you write then in your case you have to check your system, auth and daemon logs because it sounds like your box is/was a target. Did you run any auditing apps like Tiger, Chkrootkit / Rootkit Hunter?
|
|
|
01-08-2006, 10:54 AM
|
#6
|
LQ Newbie
Registered: Aug 2005
Location: Egypt
Distribution: Suse and Red hat
Posts: 14
Original Poster
Rep:
|
yes,Rootkit Hunter is running.
|
|
|
01-08-2006, 12:11 PM
|
#7
|
Member
Registered: Apr 2005
Location: Canada
Distribution: Slackware
Posts: 496
Rep:
|
That's an interesting point about mounting /tmp as noexec (and nosuid). I'll be doing that for my home system, thanks.
|
|
|
01-08-2006, 03:11 PM
|
#8
|
LQ Newbie
Registered: Aug 2005
Location: Egypt
Distribution: Suse and Red hat
Posts: 14
Original Poster
Rep:
|
yes,Rootkit Hunter is running.
|
|
|
01-09-2006, 05:41 PM
|
#9
|
LQ Newbie
Registered: Aug 2005
Location: Egypt
Distribution: Suse and Red hat
Posts: 14
Original Poster
Rep:
|
Thanks...
Thanks all the problem was solved.
|
|
|
All times are GMT -5. The time now is 06:02 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|