Results 1 to 7 of 7
Threaded View
-
29th May 2011, 02:03 AM #1OPMemberWebsite's:
ihide.info experthide.com hideonthe.net[TUT] Securing /tmp and /dev/shm partion
Hello,
So here I am again for another tut. This time we are securing /tmp and /dev/shm.
Lets get started.
Part 1 : Securing /tmp
Step 1 : Make a 1GB(Or more) file for /tmp and an ext3 filesystem for tmp
Code:dd if=/dev/zero of=/dev/tmpFS bs=1024 count=1000000 /sbin/mkfs.ext3 /dev/tmpFS
Code:cp -Rpf /tmp /tmpbackup
Code:mount -o loop,noexec,nosuid,rw /dev/tmpFS /tmp chmod 1777 /tmp
Code:cp -Rpf /tmpbackup/* /tmp/
Code:/dev/tmpMnt /tmp ext3 loop,nosuid,noexec,rw 0 0
Code:mount -o remount /tmp
Step 1 : Rename it and create a symbolic link to /tmp
Code:mv /var/tmp /var/tmp1 ln -s /tmp /var/tmp
Code:cp /var/tmpold/* /tmp/
Part 3 : Securing /dev/shm
Step 1 : Edit your /etc/fstab
Code:nano /etc/fstab
"none /dev/shm tmpfs defaults,rw 0 0" to
"none /dev/shm tmpfs defaults,nosuid,noexec,rw 0 0"
Step 2 : Remount /dev/shm
Code:mount -o remount /dev/shm
And their you goAll done!
*Note* if you have cpanel installed just run /scripts/securetmp in ssh.:Raymond:. Reviewed by .:Raymond:. on . [TUT] Securing /tmp and /dev/shm partion Hello, So here I am again for another tut. This time we are securing /tmp and /dev/shm. Lets get started. Part 1 : Securing /tmp Step 1 : Make a 1GB(Or more) file for /tmp and an ext3 filesystem for tmp dd if=/dev/zero of=/dev/tmpFS bs=1024 count=1000000 Rating: 5
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Securing php-fpm with nginx
By masterb56 in forum Technical and Security TutorialsReplies: 4Last Post: 29th Aug 2011, 08:46 AM -
[TUT] Securing SSH a bit ;)
By .:Raymond:. in forum Technical and Security TutorialsReplies: 13Last Post: 9th Jun 2011, 08:29 AM -
[Selling] VPS Securing Services
By iL < in forum Completed TransactionsReplies: 2Last Post: 31st Mar 2010, 05:13 AM -
Need help securing VPS!!
By lukip006 in forum Server ManagementReplies: 5Last Post: 31st Aug 2009, 04:14 PM -
securing vb forum
By lenney in forum vBulletinReplies: 16Last Post: 19th Jul 2009, 08:43 PM
themaLeecher - leech and manage...
Version 5.03 released. Open older version (or...