web design
Home About Us Our Services Our Technology Portfolio Case Study  Hosting Call Back Contact Us
web development
web designers
 
Font Size A A A
Free Consultation
latest projects
our latest web projects
our latest web projects
VISIT | MORE
our latest web projects
latest projects
our latest web projects
14th August 2007
Domain Tasting


29th July 2007
Google Exclusion tag


17th July 2007
Securing linux tmp folders


17th July 2007
Repair website file and folder permissions


17th July 2007
Top disk space folders


17th July 2007
Fresh Content


28th June 2007
SEO for web 2.0


22nd June 2007
Using ensim to add email accounts


21st June 2007
E-Commerce Payment Integrations


13th June 2007
Bespoke Web Design


our latest web projects
we support php, mysql, redhat, apache, ensim and yell
 
content management systems

Securing linux tmp folders - 17th July 2007

Hackers can use your tmp folder to upload and execute their own scripts, this can easily be solved by creating an empty filesystem on your server that does not have execute permissions

heres how:

cd /root

Create 500MB file for our /tmp partition. If you need more space, make count size larger.

dd if=/dev/zero of=tmpMnt bs=1024 count=500000

Make an extended filesystem for our tmpMnt file

/sbin/mke2fs /root/tmpMnt

Mount the new /tmp filesystem with noexec

mount -o loop,noexec,nosuid,rw /root/tmpMnt /tmp

chmod 1777 /tmp

Now we need to add this to fstab so it mounts automatically on reboots.

At the bottom add

/root/tmpMnt             /tmp                    ext2    loop,noexec,nosuid,rw  0 0

Job done!

Web Design News Index

Web Design Package 1 £499
Web Design Package 2 £699
Web Design Package 3 £999
Bespoke Web Design starting from £1499
Web Hosting

Contact us now about your web design requirements

web designers
web development
Valid HTML 4.01 Transitional Valid CSS! © 2008 Prime Business Web - All rights reserved.