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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
10-10-2007, 10:16 PM
|
#1
|
|
Member
Registered: Dec 2005
Posts: 52
Rep:
|
how to securing /tmp , /var/tmp and /dev/shm
as above topic..
based on my knowledge, i know this 3 dir is 777 permission. that will be dangerous for a live server.
if someone gain local user access. he can execute something at here and gain the root access.
do u guy have any experience on securing these directories ??
thanks
|
|
|
|
10-11-2007, 08:24 AM
|
#2
|
|
Member
Registered: Sep 2001
Posts: 40
Rep:
|
Some people advocate mounting /tmp on a separate partition with the noexec and nosuid options. Theoretically, one might be able to construct a case where this might lead to problems with badly written software, but in real life, this should work out fine.
See, for example, the article at http://www.sagonet.com/vbulletin/showthread.php?t=2852.
|
|
|
|
10-11-2007, 11:26 PM
|
#3
|
|
Member
Registered: Dec 2005
Posts: 52
Original Poster
Rep:
|
Quote:
Originally Posted by juergen
Some people advocate mounting /tmp on a separate partition with the noexec and nosuid options. Theoretically, one might be able to construct a case where this might lead to problems with badly written software, but in real life, this should work out fine.
See, for example, the article at http://www.sagonet.com/vbulletin/showthread.php?t=2852.
|
thanks alot :P
i will do it later :P
|
|
|
|
10-12-2007, 06:59 AM
|
#4
|
|
Senior Member
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 12.3_64-KDE, Ubuntu 12.04, Fedora 17, Mint 14, Chakra
Posts: 3,517
Rep: 
|
If you have a lot of RAM there is also tmpfs, to be used in combination with juergen's noexec and nosuid options during mount via /etc/fstab.
|
|
|
|
10-13-2007, 04:04 AM
|
#5
|
|
Moderator
Registered: May 2001
Posts: 24,824
|
Also note that if you use badly configured or vulnerable Perl or PHP-based apps / serving daemon / kernel, using mount flags is nice but *NOT* sufficient at all.
|
|
|
|
10-16-2007, 08:30 PM
|
#6
|
|
Member
Registered: Dec 2005
Posts: 52
Original Poster
Rep:
|
Quote:
Originally Posted by unSpawn
Also note that if you use badly configured or vulnerable Perl or PHP-based apps / serving daemon / kernel, using mount flags is nice but *NOT* sufficient at all.
|
ya i know that..
now i setup my system with single / and swap.
when i added the /tmp in the fstab and it is not working after reboot.
is it i have to make the /tmp as a single partition during installation?
thanks
|
|
|
|
10-17-2007, 02:23 PM
|
#7
|
|
Moderator
Registered: May 2001
Posts: 24,824
|
Quote:
Originally Posted by hackintosh
now i setup my system with single / and swap.
|
...right. Then you also already know using a single / and swap is not a way to set up a server.
|
|
|
|
10-17-2007, 11:26 PM
|
#8
|
|
Member
Registered: Dec 2005
Posts: 52
Original Poster
Rep:
|
Quote:
Originally Posted by unSpawn
...right. Then you also already know using a single / and swap is not a way to set up a server.
|
that caused me a lot of painful. but no pain no gain.
at least i gain something.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:29 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
|
|